Skip to content

Commit 00db820

Browse files
committed
Check if array key products exists
1 parent 6c2f9d4 commit 00db820

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/Hook/HookDisplayFooter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function run()
8787

8888
$listing = $this->context->smarty->getTemplateVars('listing');
8989
$productWrapper = new ProductWrapper($this->context);
90-
$products = $productWrapper->wrapProductList($listing['products'], [], true);
90+
$products = $productWrapper->wrapProductList(isset($listing['products']) ? $listing['products'] : [], [], true);
9191

9292
if ($controller_name == 'order' || $controller_name == 'orderopc') {
9393
$this->module->js_state = 1;

0 commit comments

Comments
 (0)