mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 19:42:54 +02:00
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:
@@ -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()';
|
||||
|
||||
Reference in New Issue
Block a user