[-] MO : fixed bug #PSCFV-5379 - code problem in editorial.php at function hookDisplayHome
This commit is contained in:
@@ -283,7 +283,8 @@ class Editorial extends Module
|
|||||||
$id_shop = (int)$this->context->shop->id;
|
$id_shop = (int)$this->context->shop->id;
|
||||||
$editorial = EditorialClass::getByIdShop($id_shop);
|
$editorial = EditorialClass::getByIdShop($id_shop);
|
||||||
$editorial = new EditorialClass((int)$editorial->id, $this->context->language->id);
|
$editorial = new EditorialClass((int)$editorial->id, $this->context->language->id);
|
||||||
|
if (!$editorial)
|
||||||
|
return;
|
||||||
$this->smarty->assign(array(
|
$this->smarty->assign(array(
|
||||||
'editorial' => $editorial,
|
'editorial' => $editorial,
|
||||||
'default_lang' => (int)$this->context->language->id,
|
'default_lang' => (int)$this->context->language->id,
|
||||||
|
|||||||
Reference in New Issue
Block a user