Php warning correction

git-svn-id: http://piwigo.org/svn/branches/release-1_3@292 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-01-18 21:55:20 +00:00
parent 20f57086ac
commit 5efed0a4e0

View File

@@ -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()';