From b4ffea31f4a95811a4f72ce250247f2fd10ad31d Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 17 Jan 2004 23:15:12 +0000 Subject: [PATCH] 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 --- comments.php | 1 + 1 file changed, 1 insertion(+) 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'] != '' ) {