aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/category_default.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php
index 61c81aa9e..8d2cd050b 100644
--- a/include/category_default.inc.php
+++ b/include/category_default.inc.php
@@ -74,7 +74,7 @@ if (count($pictures) > 0)
: '' ))
);
- if ($user['show_nb_comments'])
+ if ($conf['activate_comments'] and $user['show_nb_comments'])
{
$query = '
SELECT image_id, COUNT(*) AS nb_comments