Skip to content

Commit 345461c

Browse files
authored
Fix for daniel-rose#4
1 parent 52f58b3 commit 345461c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Model/Filter/QuoteContent.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class QuoteContent implements FilterInterface
2121
public function execute(MethodInterface $paymentMethod, CartInterface $quote, DataObject $result)
2222
{
2323
$visibleItems = $quote->getItems();
24+
25+
if(!$visibleItems) {
26+
return;
27+
}
2428

2529
foreach ($visibleItems as $visibleItem) {
2630
$product = $visibleItem->getProduct();
@@ -46,4 +50,4 @@ public function execute(MethodInterface $paymentMethod, CartInterface $quote, Da
4650
}
4751
}
4852
}
49-
}
53+
}

0 commit comments

Comments
 (0)