Skip to content

Commit 936e905

Browse files
Merge pull request #107 from atomiix/fix/26539
Check if array key products exists before using it
2 parents a82ea58 + 00db820 commit 936e905

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)