// Remove Shop::getTotalShopWhoExists (rofl ...)

This commit is contained in:
rMalie
2012-04-19 09:42:26 +00:00
parent da3dedaf75
commit 4e4e5a0f3e
+1 -1
View File
@@ -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))