diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-09-07 21:39:24 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-09-07 21:39:24 +0000 |
commit | a725a02ff2fcaaa755b50026788e1e37697a9296 (patch) | |
tree | ef2f12898d96fd9521331452de3576d6415f71d1 | |
parent | 79e9414c0f32309b63638bdb4e05a9cfbaa2d3d1 (diff) |
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
-rw-r--r-- | admin/comments.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 ); |