// fix ajax file manager error with undefined employee

This commit is contained in:
tDidierjean
2011-09-15 08:22:10 +00:00
parent c405e1a55b
commit 14004d9f97
21 changed files with 27 additions and 8 deletions

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']);