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:
z0rglub
2003-09-07 21:39:24 +00:00
parent 79e9414c0f
commit a725a02ff2
+1
View File
@@ -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 );