Fix directory scan to only scan installed apps

This commit is contained in:
Nathan Gray 2010-03-26 14:57:44 +00:00
parent 84d3643b22
commit 1d04bc2d65

View File

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