// Autoassignation of the cart rule when log out

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15610 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-05-22 10:20:36 +00:00
parent f2b5b0cd63
commit 859f360783
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -969,7 +969,7 @@ class CartRuleCore extends ObjectModel
public static function autoRemoveFromCart($context = null)
{
if (!CartRule::isFeatureActive())
if (!CartRule::isFeatureActive() || !Validate::isLoadedObject($context->cart))
return array();
$errors = array();