From 002e4c9d96a57c57afdcf196cdc6bd3db1173a5d Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Mon, 28 Sep 2020 20:08:11 +0200 Subject: [PATCH] Update ProductController.php PHP 7.2 & 7.3 --- controllers/front/ProductController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index b45e23805..46cfd89d0 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -254,7 +254,7 @@ class ProductControllerCore extends FrontController } $accessories = $this->product->getAccessories($this->context->language->id); - if ($this->product->cache_is_pack || count($accessories)) { + if ($this->product->cache_is_pack || (is_array($accessories) && count($accessories))) { $this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css'); } if ($this->product->customizable) {