// Autoassignation of the cart rule when log out

This commit is contained in:
dMetzger
2012-05-22 10:20:36 +00:00
parent d6507099d4
commit beb198b3d5
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();