From 96a4a261a450c8b7117f98cb5f670eb4ebd4b482 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 30 Aug 2011 20:04:31 -0700 Subject: Patch for #1774 --- modules/gallery/helpers/item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index 494c6db4..0bb45e49 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -407,7 +407,8 @@ class item_Core { * Set the display context callback for any future item renders. */ static function set_display_context_callback() { - Cache::instance()->set("display_context_" . $sid = Session::instance()->id(), func_get_args()); + $args = func_get_args(); + Cache::instance()->set("display_context_" . $sid = Session::instance()->id(), $args); } /** -- cgit v1.2.3