summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery/helpers/item.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php
index 0bb45e49..a0654a88 100644
--- a/modules/gallery/helpers/item.php
+++ b/modules/gallery/helpers/item.php
@@ -418,6 +418,9 @@ class item_Core {
$args = Cache::instance()->get("display_context_" . $sid = Session::instance()->id());
$callback = $args[0];
$args[0] = $item;
+ if (!$callback) {
+ $callback = "Albums_Controller::get_display_context";
+ }
return call_user_func_array($callback, $args);
}
} \ No newline at end of file