From 96afbb53cf9f2bdd38efbcf9955655ce00f75e26 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 14 Mar 2013 17:49:07 +0100 Subject: [PATCH] // remove warning in multishop --- modules/editorial/editorial.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/editorial/editorial.php b/modules/editorial/editorial.php index 8a8c70dec..3df3fa570 100644 --- a/modules/editorial/editorial.php +++ b/modules/editorial/editorial.php @@ -285,6 +285,8 @@ class Editorial extends Module { $id_shop = (int)$this->context->shop->id; $editorial = EditorialClass::getByIdShop($id_shop); + if (!$editorial) + return; $editorial = new EditorialClass((int)$editorial->id, $this->context->language->id); if (!$editorial) return;