From 82722d12a7fe20ca49dfcffceb43f10dc8445287 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 20 Jun 2012 13:47:30 +0000 Subject: [PATCH] [-] MO : productcomments : fix #PSCFV-2890 --- modules/productcomments/productcomments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/productcomments/productcomments.php b/modules/productcomments/productcomments.php index 1bccc23c9..0dbc64d35 100644 --- a/modules/productcomments/productcomments.php +++ b/modules/productcomments/productcomments.php @@ -799,7 +799,7 @@ class ProductComments extends Module $list_grades[$criterion['id_product_comment_criterion']] = $criterion['name']; } - $list_product_average[$id_product] = $grade_total / count($criterion); + $list_product_average[$id_product] = $grade_total / count($criterions); $list_product_comment[$id_product] = ProductComment::getByProduct($id_product, 0, 3); } }