From 1fdb27bdc3d4ab37801464bbd39938c76de03bd9 Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 9 May 2012 13:49:49 +0000 Subject: [PATCH] // normalize --- modules/blockcategories/blockcategories.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 9b11ead03..978b9a315 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -158,13 +158,13 @@ class BlockCategories extends Module { $id_current_shop = $this->context->shop->id; - $id_customer = (int)($params['cookie']->id_customer); + $id_customer = (int)$params['cookie']->id_customer; // Get all groups for this customer and concatenate them as a string: "1,2,3..." // It is necessary to keep the group query separate from the main select query because it is used for the cache $groups = $id_customer ? implode(', ', Customer::getGroupsStatic($id_customer)) : Configuration::get('PS_UNIDENTIFIED_GROUP'); - $id_product = (int)(Tools::getValue('id_product', 0)); - $id_category = (int)(Tools::getValue('id_category', 0)); - $id_lang = (int)($params['cookie']->id_lang); + $id_product = (int)Tools::getValue('id_product', 0); + $id_category = (int)Tools::getValue('id_category', 0); + $id_lang = (int)$params['cookie']->id_lang; $smartyCacheId = 'blockcategories|'.$id_current_shop.'_'.$groups.'_'.$id_lang.'_'.$id_product.'_'.$id_category; Tools::enableCache();