[*] BO Module productcomments: JS variables are correctly escaped. Padding in error message has also been pushed to theme tpl

This commit is contained in:
Fabio Chelly
2013-10-11 16:37:26 +02:00
parent 45e9040606
commit 9e3b82e8ed
3 changed files with 14 additions and 14 deletions
@@ -92,7 +92,7 @@ class ProductCommentsDefaultModuleFrontController extends ModuleFrontController
if (!count($errors))
{
$customer_comment = ProductComment::getByCustomer(Tools::getValue('id_product'), $id_customer, true, $id_guest);
if (!$customer_comment || ($customer_comment && (strtotime($customer_comment['date_add']) + Configuration::get('PRODUCT_COMMENTS_MINIMAL_TIME')) < time()))
if (!$customer_comment || ($customer_comment && (strtotime($customer_comment['date_add']) + (int)Configuration::get('PRODUCT_COMMENTS_MINIMAL_TIME')) < time()))
{
$comment = new ProductComment();