From dd6edbb30c9ab2d8de213d3316ed362136fb2be3 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 19 Jan 2004 21:20:11 +0000 Subject: Code rewritting git-svn-id: http://piwigo.org/svn/branches/release-1_3@302 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_category.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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']; } -- cgit v1.2.3