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
This commit is contained in:
z0rglub
2004-01-17 23:15:12 +00:00
parent 8b4fd27f0b
commit b4ffea31f4
+1
View File
@@ -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'] != '' )
{