From c0bb4dfb43d05d68cb4abe69e279e91c88bd2f11 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 26 Jul 2011 19:04:50 +0000 Subject: feature 2384: improve average rating calculation (final) git-svn-id: http://piwigo.org/svn/trunk@11839 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/picture_comment.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/picture_comment.inc.php') diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index ec92594e8..064e02056 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -31,7 +31,7 @@ $page['show_comments'] = false; foreach ($related_categories as $category) { - if ($category['commentable'] == 'true') + if ($category['commentable']) { $page['show_comments'] = true; break; -- cgit v1.2.3