diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-08-02 22:10:48 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-08-02 22:10:48 +0000 |
commit | cb92fa6bf0ec144504e59cfcaa49d97d386ece4d (patch) | |
tree | 8c3e588d040f90368e94d9cc63c3fa0a468e1e56 /views/default/object/image.php | |
parent | b419b142276a3451bcc162e334172f0797ab54f5 (diff) | |
download | elgg-cb92fa6bf0ec144504e59cfcaa49d97d386ece4d.tar.gz elgg-cb92fa6bf0ec144504e59cfcaa49d97d386ece4d.tar.bz2 |
should fix warnings that occur occasionally on array_search
Diffstat (limited to 'views/default/object/image.php')
-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) |