Changeset 3147 for branches/2.0/include/picture_comment.inc.php
- Timestamp:
- Feb 14, 2009, 3:28:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/include/picture_comment.inc.php
r3123 r3147 89 89 if ($page['show_comments']) 90 90 { 91 // number of comment for this picture92 $query = ' SELECT COUNT(*) AS nb_comments';93 $query.= ' FROM '.COMMENTS_TABLE.' WHERE image_id = '.$page['image_id']; 94 $query.= " AND validated = 'true'";95 $query.= ';';91 // number of comments for this picture 92 $query = ' 93 SELECT COUNT(*) AS nb_comments 94 FROM '.COMMENTS_TABLE.' 95 WHERE image_id='.$page['image_id']." AND validated = 'true'"; 96 96 $row = mysql_fetch_array( pwg_query( $query ) ); 97 97 … … 161 161 or (is_a_guest() and $conf['comments_forall'])) 162 162 { 163 include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');164 163 $key = get_comment_post_key($page['image_id']); 165 164 $content = '';
Note: See TracChangeset
for help on using the changeset viewer.