for unknown apps eg. "/apps/InfoLog" use "filemanager"

This commit is contained in:
Ralf Becker 2014-06-16 13:19:07 +00:00
parent e16b6b361d
commit 1cb00eb580

View File

@ -62,7 +62,7 @@ function get_app()
elseif (isset($_GET['path'])) elseif (isset($_GET['path']))
{ {
list(, $apps, $app) = explode('/', $_GET['path']); list(, $apps, $app) = explode('/', $_GET['path']);
if ($apps !== 'apps') if ($apps !== 'apps' || !isset($GLOBALS['egw_info']['user']['apps'][$app]))
{ {
$app = 'filemanager'; $app = 'filemanager';
} }