diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-01-17 23:15:12 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-01-17 23:15:12 +0000 |
commit | b4ffea31f4a95811a4f72ce250247f2fd10ad31d (patch) | |
tree | cff1af27a9486741ff2b8652ffb418841f94df33 | |
parent | 8b4fd27f0b1303a7d2b044a1c6fb061a992956e0 (diff) |
bug-1_3_0-001 : if you activate the validation of users comments before
making them visible, before validating the comments, you can see associated
picture in the public part comments.php (but not the unvalidated comment,
only the picture) [corrected]
git-svn-id: http://piwigo.org/svn/branches/release-1_3@287 68402e56-0260-453c-a942-63ccdbb3a9ee
-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'] != '' ) { |