From 04c83e9b14218dbfe43756eb7844c13f9edcc7ab Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 25 Mar 2010 19:24:36 +0000 Subject: [PATCH] Don't scan applications that are not available to admin. --- importexport/inc/class.importexport_helper_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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