diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/object/image.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php index e5ccd2276..dc77c41ca 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -164,7 +164,8 @@ if ($photo_tags) { array_push($_SESSION['image_sort'], $image->guid); } - $current = array_search($file_guid, $_SESSION['image_sort']); + if ($_SESSION['image_sort']) + $current = array_search($file_guid, $_SESSION['image_sort']); } if ($current != 0) |