aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/comments.php1
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 );