diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/category_default.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 48e16fa95..3c1ed5a6c 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -155,7 +155,7 @@ SELECT COUNT(*) AS nb_comments WHERE image_id = '.$row['id'].' AND validated = \'true\' ;'; - $row = mysql_fetch_array(pwg_query($query)); + list($row['nb_comments']) = mysql_fetch_array(pwg_query($query)); $template->assign_block_vars( 'thumbnails.line.thumbnail.nb_comments', array( |