Don't scan applications that are not available to admin.

This commit is contained in:
Nathan Gray 2010-03-25 19:24:36 +00:00
parent af6e0c661d
commit 04c83e9b14

View File

@ -273,7 +273,7 @@ class importexport_helper_functions {
foreach ($appnames as $appname) {
$appdir = EGW_INCLUDE_ROOT. "/$appname/inc";
if(!is_dir($appdir)) continue;
if(!is_dir($appdir) || !array_key_exists($GLOBALS['egw_info']['apps'], $appdir)) continue;
$d = dir($appdir);
// step through each file in appdir