diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-04-04 16:06:57 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-04-04 16:06:57 +0000 |
commit | c9e95410b448a3e0cd4cd6ed25e70aa88e012381 (patch) | |
tree | b512413ab846e73ee3d76ef25fc72986695e25bb /views/default | |
parent | ce8c41d96241e48c156b5df57f4046b04c07955b (diff) | |
download | elgg-c9e95410b448a3e0cd4cd6ed25e70aa88e012381.tar.gz elgg-c9e95410b448a3e0cd4cd6ed25e70aa88e012381.tar.bz2 |
fixed bug I introduced into image nav
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/object/image.php | 6 |
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] . '"><<' . 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') . '>></a>'; |