[-] Classes : #PSTEST-214 : BugFix : TopMenu for shops and groups

This commit is contained in:
Francois Gaillard
2012-01-02 10:15:49 +00:00
parent ac665c1ad3
commit 3bf50e992e
2 changed files with 6 additions and 12 deletions
+1 -1
View File
@@ -387,7 +387,7 @@ class ShopCore extends ObjectModel
{
if (defined('_PS_ADMIN_DIR_'))
return Shop::getContextGroupID();
return (int)$this->id_group_shop;
return (isset($this->id_group_shop)) ? (int)$this->id_group_shop : NULL;
}
/**