// fix php notice on cart rule addition without conditions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17834 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
95beae3939
commit
a800886fa4
1 file changed
+1
-1
@@ -60,7 +60,7 @@ class AdminCartRulesControllerCore extends AdminController
|
|||||||
|
|
||||||
// First, check if it is not already part of the restrictions
|
// First, check if it is not already part of the restrictions
|
||||||
$already_restricted = false;
|
$already_restricted = false;
|
||||||
if (Tools::getValue('product_restriction') && is_array($rule_group_array = Tools::getValue('product_rule_group')) && count($rule_group_array))
|
if (is_array($rule_group_array = Tools::getValue('product_rule_group')) && count($rule_group_array) && Tools::getValue('product_restriction'))
|
||||||
foreach ($rule_group_array as $rule_group_id)
|
foreach ($rule_group_array as $rule_group_id)
|
||||||
if (is_array($rule_array = Tools::getValue('product_rule_'.$rule_group_id)) && count($rule_array))
|
if (is_array($rule_array = Tools::getValue('product_rule_'.$rule_group_id)) && count($rule_array))
|
||||||
foreach ($rule_array as $rule_id)
|
foreach ($rule_array as $rule_id)
|
||||||
|
|||||||
Reference in new issue
Block a user