mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
In comments validation section, shows only unvalidated comments, not all
comments of picture which have unvalidated comments. git-svn-id: http://piwigo.org/svn/trunk@79 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -78,6 +78,7 @@ function display_pictures( $mysql_result, $maxtime, $validation_box = false )
|
||||
$query.= ' FROM '.PREFIX_TABLE.'comments';
|
||||
$query.= ' WHERE image_id = '.$row['image_id'];
|
||||
$query.= ' AND date > '.$maxtime;
|
||||
if ( $validation_box ) $query.= " AND validated = 'false'";
|
||||
$query.= ' ORDER BY date DESC';
|
||||
$query.= ';';
|
||||
$subresult = mysql_query( $query );
|
||||
|
||||
Reference in New Issue
Block a user