diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/albums.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php index d87bd640..ef1d2eb4 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -40,7 +40,7 @@ class Albums_Controller extends Items_Controller { $page = $this->input->get("page", "1"); $children_count = $album->viewable()->children_count(); - $offset = ($page-1) * $page_size; + $offset = ($page - 1) * $page_size; // Make sure that the page references a valid offset if ($page < 1 || $page > max(ceil($children_count / $page_size), 1)) { |