aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-04-04 16:06:57 +0000
committerCash Costello <cash.costello@gmail.com>2009-04-04 16:06:57 +0000
commitc9e95410b448a3e0cd4cd6ed25e70aa88e012381 (patch)
treeb512413ab846e73ee3d76ef25fc72986695e25bb
parentce8c41d96241e48c156b5df57f4046b04c07955b (diff)
downloadelgg-c9e95410b448a3e0cd4cd6ed25e70aa88e012381.tar.gz
elgg-c9e95410b448a3e0cd4cd6ed25e70aa88e012381.tar.bz2
fixed bug I introduced into image nav
-rw-r--r--views/default/object/image.php6
1 files changed, 3 insertions, 3 deletions
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 = '<a href="' .$vars['url'] . 'pg/photos/view/' . $_SESSION['image_sort'][$current-1] . '">&#60;&#60;' . elgg_echo('image:back') . '</a>';
-
- if (sizeof($_SESSION['image_sort']) > $current)
+
+ if (sizeof($_SESSION['image_sort']) > $current + 1)
$next = '<a href="' . $vars['url'] . 'pg/photos/view/' . $_SESSION['image_sort'][$current+1] . '">' . elgg_echo('image:next') . '&#62;&#62;</a>';