diff --git a/commerce_discount.rules.inc b/commerce_discount.rules.inc index b3e13f6..73a9b2f 100644 --- a/commerce_discount.rules.inc +++ b/commerce_discount.rules.inc @@ -642,7 +642,7 @@ function commerce_discount_percentage(EntityDrupalWrapper $wrapper, $discount_na // Exit if there are no line items or the wrapper doesn't contain // the commerce_discounts property. - if (isset($wrapper->commerce_discounts) || !$wrapper->commerce_line_items->value()) { + if (!isset($wrapper->commerce_discounts) || !$wrapper->commerce_line_items->value()) { return; }