From 9cd353da4be88ad3e8a7574dfbe03200cd18cdda Mon Sep 17 00:00:00 2001 From: vChabot Date: Sat, 19 May 2012 12:23:58 +0000 Subject: [PATCH] [-] BO : BugFix : #PSCFV-2440 : Impossible to delete a shop with share option --- classes/controller/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 789545bc2..7cd134a54 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -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);