[-] 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
This commit is contained in:
lLefevre
2011-10-10 08:34:25 +00:00
parent 8cb02307e5
commit 19a86d0a8f
+1 -1
View File
@@ -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';