Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git@github.com:gallery/gallery3 into beta3_s…

…taging
  • Loading branch information...
commit 71a2e3624e05302725281c19b23beba252183a15 2 parents bc69dfb + caa2002
@bharat bharat authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 modules/gallery/controllers/albums.php
View
12 modules/gallery/controllers/albums.php
@@ -40,11 +40,13 @@ public function _show($album) {
if ($show) {
$index = $album->get_position($show);
- $page = ceil($index / $page_size);
- if ($page == 1) {
- url::redirect($album->abs_url());
- } else {
- url::redirect($album->abs_url("page=$page"));
+ if ($index) {
+ $page = ceil($index / $page_size);
+ if ($page == 1) {
+ url::redirect($album->abs_url());
+ } else {
+ url::redirect($album->abs_url("page=$page"));
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.