minor fixes for dbl / and index at last image
[bizou.git] / view.php
index 99e7f9c..2d6aaa5 100644 (file)
--- a/view.php
+++ b/view.php
@@ -26,7 +26,7 @@ $prevImage = '';
 $nextImage = '';
 if ($pos > 0)
        $prevImage = $images[$pos-1];
-if ($pos < sizeof($images))
+if ($pos < sizeof($images)-1)
        $nextImage = $images[$pos+1];
 
 // template variables