From c9e95410b448a3e0cd4cd6ed25e70aa88e012381 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 4 Apr 2009 16:06:57 +0000 Subject: fixed bug I introduced into image nav --- views/default/object/image.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views/default') diff --git a/views/default/object/image.php b/views/default/object/image.php index 954ffee92..f0c6b14d9 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -76,11 +76,11 @@ $current = array_search($file_guid, $_SESSION['image_sort']); } - + if ($current != 0) $back = '<<' . elgg_echo('image:back') . ''; - - if (sizeof($_SESSION['image_sort']) > $current) + + if (sizeof($_SESSION['image_sort']) > $current + 1) $next = '' . elgg_echo('image:next') . '>>'; -- cgit v1.2.3