Prevent Fatal error if current order coupon is deleted

This commit is contained in:
Franck Allimant
2014-05-10 12:10:45 +02:00
parent df9b19cb91
commit 862d8ec913

View File

@@ -111,7 +111,7 @@ class CouponManager
/** @var CouponInterface $coupon */
foreach ($coupons as $coupon) {
if (!$coupon->isExpired()) {
if ($coupon && !$coupon->isExpired()) {
if ($coupon->isCumulative()) {
if (isset($couponsKept[0])) {
/** @var CouponInterface $previousCoupon */