From a725a02ff2fcaaa755b50026788e1e37697a9296 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 7 Sep 2003 21:39:24 +0000 Subject: 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 --- admin/comments.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/comments.php b/admin/comments.php index 11104be2b..620495919 100644 --- a/admin/comments.php +++ b/admin/comments.php @@ -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 ); -- cgit v1.2.3