diff --git a/source/php/Module/Products.php b/source/php/Module/Products.php index cebfd00..9843298 100644 --- a/source/php/Module/Products.php +++ b/source/php/Module/Products.php @@ -34,11 +34,12 @@ public function data(): array )); foreach ($data['products'] as &$product) { - - foreach ($product['bulletPoints'] as &$bulletPoint) { - $bulletPoint['icon']['src'] = 'check_circle'; - $bulletPoint['size'] = 'sm'; - } + if (!empty($product['bulletPoints'])) { + foreach ($product['bulletPoints'] as &$bulletPoint) { + $bulletPoint['icon']['src'] = 'check_circle'; + $bulletPoint['size'] = 'sm'; + } + } if (!empty($product['prices'])) { foreach ($product['prices'] as &$price) {