// small fix
This commit is contained in:
1 parent
932d949392
commit
da8c21d644
1 file changed
+1
-1
@@ -352,7 +352,7 @@ class ShopCore extends ObjectModel
|
|||||||
if ((!$id_shop && defined('_PS_ADMIN_DIR_')) || Tools::isPHPCLI())
|
if ((!$id_shop && defined('_PS_ADMIN_DIR_')) || Tools::isPHPCLI())
|
||||||
{
|
{
|
||||||
// If in admin, we can access to the shop without right URL
|
// If in admin, we can access to the shop without right URL
|
||||||
if (!$id_shop)
|
if ((!$id_shop && Tools::isPHPCLI()) || defined('_PS_ADMIN_DIR_'))
|
||||||
$id_shop = (int)Configuration::get('PS_SHOP_DEFAULT');
|
$id_shop = (int)Configuration::get('PS_SHOP_DEFAULT');
|
||||||
|
|
||||||
$shop = new Shop((int)$id_shop);
|
$shop = new Shop((int)$id_shop);
|
||||||
|
|||||||
Reference in new issue
Block a user