Update ProductController.php
PHP 7.2 & 7.3
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user