- Timestamp:
- Dec 9, 2006, 9:57:43 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r1617 r1646 300 300 } 301 301 302 // Comments_validation is required and is not admin => Only validated 303 $comment_fltr = ''; 304 if ( $conf['comments_validation'] and !is_admin() ) 305 { 306 $comment_fltr = 'AND com.validated = \'true\''; 307 } 308 302 309 $query = ' 303 310 SELECT COUNT(DISTINCT(id)) … … 309 316 AND '.$page['author_clause'].' 310 317 AND '.$page['keyword_clause'].' 318 '.$comment_fltr.' 311 319 AND '.$page['status_clause']; 312 320 if ($user['forbidden_categories'] != '') … … 355 363 AND '.$page['author_clause'].' 356 364 AND '.$page['keyword_clause'].' 365 '.$comment_fltr.' 357 366 AND '.$page['status_clause']; 358 367 if ($user['forbidden_categories'] != '')
Note: See TracChangeset
for help on using the changeset viewer.