From 19a86d0a8f593f9d635421fc954f3e0a40fef0bb Mon Sep 17 00:00:00 2001 From: lLefevre Date: Mon, 10 Oct 2011 08:34:25 +0000 Subject: [PATCH] [-] FO : not check if context employee exist git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9168 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/shop/Shop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index 86a7bf384..a2745f9c8 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -380,7 +380,7 @@ class ShopCore extends ObjectModel $employee = Context::getContext()->employee; /* if the profile isn't a superAdmin */ - if ($employee->id_profile != _PS_ADMIN_PROFILE_) + if ($employee && $employee->id_profile != _PS_ADMIN_PROFILE_) { $select .= ', es.id_employee'; $from .= 'LEFT JOIN '._DB_PREFIX_.'employee_shop es ON es.id_shop = s.id_shop';