aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-19 21:20:11 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-19 21:20:11 +0000
commitdd6edbb30c9ab2d8de213d3316ed362136fb2be3 (patch)
tree797adc0b8340d1895889e39c6ff02831056fd7dc
parent982bc009b6879ea78d0fd1eec6469c713be2f1dc (diff)
Code rewritting
git-svn-id: http://piwigo.org/svn/branches/release-1_3@302 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index dec7a7bf8..51b990780 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -540,7 +540,8 @@ function initialize_category( $calling_page = 'category' )
$page['where'] = ' WHERE category_id != -1'.$where_append;
$conf['order_by'] = ' ORDER BY hit DESC, file ASC';
$page['cat_nb_images'] = $conf['top_number'];
- if ( isset($page['start']) && ($page['start']+ $user['nb_image_page'] >= $conf['top_number'] ))
+ if ( isset( $page['start'] )
+ and ($page['start']+$user['nb_image_page']>=$conf['top_number']))
{
$page['nb_image_page'] = $conf['top_number'] - $page['start'];
}