[-] BO : BugFix : #PSCFV-2440 : Impossible to delete a shop with share option

This commit is contained in:
vChabot
2012-05-19 12:23:58 +00:00
parent 9d4692311a
commit 9cd353da4b

View File

@@ -1693,7 +1693,7 @@ class AdminControllerCore extends Controller
Shop::setContext(Shop::CONTEXT_SHOP, $shop_id);
}
}
else if ($this->context->employee->hasAuthOnShop($split[1]))
else if (Shop::getShop($split[1]) && $this->context->employee->hasAuthOnShop($split[1]))
{
$shop_id = $split[1];
Shop::setContext(Shop::CONTEXT_SHOP, $shop_id);