From 5efed0a4e0021681bc477ef8a5715c9923c252f1 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 18 Jan 2004 21:55:20 +0000 Subject: Php warning correction git-svn-id: http://piwigo.org/svn/branches/release-1_3@292 68402e56-0260-453c-a942-63ccdbb3a9ee --- category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/category.php b/category.php index 78b98e7bb..08c684709 100644 --- a/category.php +++ b/category.php @@ -387,8 +387,8 @@ elseif ( ( isset( $page['cat'] ) $query.= ' WHERE category_id = '.$non_empty_id; $query.= ' AND id = image_id'; // if the category has a representative picture, this is its thumbnail - // tha will be displayed ! - if ( $row['representative_picture_id'] != '' ) + // that will be displayed ! + if ( isset( $row['representative_picture_id'] ) ) $query.= ' AND id = '.$row['representative_picture_id']; else $query.= ' ORDER BY RAND()'; -- cgit v1.2.3