diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-01-18 21:55:20 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-01-18 21:55:20 +0000 |
commit | 5efed0a4e0021681bc477ef8a5715c9923c252f1 (patch) | |
tree | 9c99a91f835842976d7198dd52a31dff0b312457 | |
parent | 20f57086acf90c564e7659fd57938dbca8cab141 (diff) |
Php warning correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@292 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | category.php | 4 |
1 files 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()'; |