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) {