mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
- bug 215 fixed: unvalidated user comments are not displayed on user
comments common page anymore git-svn-id: http://piwigo.org/svn/branches/branch-1_5@946 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+4
-2
@@ -287,7 +287,8 @@ SELECT COUNT(DISTINCT(id))
|
||||
FROM '.IMAGE_CATEGORY_TABLE.' AS ic
|
||||
INNER JOIN '.COMMENTS_TABLE.' AS com
|
||||
ON ic.image_id = com.image_id
|
||||
WHERE '.$since_options[$page['since']]['clause'].'
|
||||
WHERE validated = \'true\'
|
||||
AND '.$since_options[$page['since']]['clause'].'
|
||||
AND '.$page['cat_clause'].'
|
||||
AND '.$page['author_clause'].'
|
||||
AND '.$page['keyword_clause'];
|
||||
@@ -329,7 +330,8 @@ SELECT com.id AS comment_id
|
||||
FROM '.IMAGE_CATEGORY_TABLE.' AS ic
|
||||
INNER JOIN '.COMMENTS_TABLE.' AS com
|
||||
ON ic.image_id = com.image_id
|
||||
WHERE '.$since_options[$page['since']]['clause'].'
|
||||
WHERE validated = \'true\'
|
||||
AND '.$since_options[$page['since']]['clause'].'
|
||||
AND '.$page['cat_clause'].'
|
||||
AND '.$page['author_clause'].'
|
||||
AND '.$page['keyword_clause'];
|
||||
|
||||
Reference in New Issue
Block a user