// Remove Shop::getTotalShopWhoExists (rofl ...)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14761 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
19961a5438
commit
264885203d
1 file changed
+1
-1
@@ -1679,7 +1679,7 @@ class AdminControllerCore extends Controller
|
|||||||
}
|
}
|
||||||
elseif ($this->context->employee->id_profile == _PS_ADMIN_PROFILE_)
|
elseif ($this->context->employee->id_profile == _PS_ADMIN_PROFILE_)
|
||||||
$shop_id = '';
|
$shop_id = '';
|
||||||
elseif ($this->context->shop->getTotalShopsWhoExists() != Employee::getTotalEmployeeShopById((int)$this->context->employee->id))
|
elseif (Shop::getTotalShops(false) != Employee::getTotalEmployeeShopById((int)$this->context->employee->id))
|
||||||
{
|
{
|
||||||
$shops = Employee::getEmployeeShopById((int)$this->context->employee->id);
|
$shops = Employee::getEmployeeShopById((int)$this->context->employee->id);
|
||||||
if (count($shops))
|
if (count($shops))
|
||||||
|
|||||||
Reference in new issue
Block a user