diff options
Diffstat (limited to 'comments.php')
-rw-r--r-- | comments.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/comments.php b/comments.php index 05d932d77..ad07958af 100644 --- a/comments.php +++ b/comments.php @@ -168,6 +168,7 @@ $query.= ' FROM '.PREFIX_TABLE.'comments AS c'; $query.= ', '.PREFIX_TABLE.'image_category AS ic'; $query.= ' WHERE c.image_id = ic.image_id'; $query.= ' AND date > '.$maxtime; +$query.= " AND validated = 'true'"; // we must not show pictures of a forbidden category if ( $user['forbidden_categories'] != '' ) { |