diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index be79135145..95a6e5b4fd 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -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