// fix ajax file manager error with undefined employee

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8602 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-09-15 08:22:10 +00:00
parent 224b55c3c2
commit 70a130854c
21 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ $context = Context::getContext();
if (isset($_GET['logout']))
$context->employee->logout();
if (!$context->employee->isLoggedBack())
if (!isset($context->employee) || !$context->employee->isLoggedBack())
Tools::redirectAdmin('login.php?redirect='.$_SERVER['REQUEST_URI']);