diff --git a/interface/web/designer/form_list.php b/interface/web/designer/form_list.php index 249b5e8807ba43a5b9b81a65e97ebff8235213f6..6bd8bc69c99946374708ae2415d55cf093eebb56 100644 --- a/interface/web/designer/form_list.php +++ b/interface/web/designer/form_list.php @@ -56,7 +56,7 @@ $handle = @opendir(ISPC_WEB_PATH); while ($file = @readdir ($handle)) { if ($file != '.' && $file != '..') { if(@is_dir(ISPC_WEB_PATH."/$file")) { - if(ISPC_WEB_PATH.'/'.$file.'/lib/module.conf.php') and $file != 'login') { + if(is_file(ISPC_WEB_PATH.'/'.$file.'/lib/module.conf.php') and $file != 'login') { if(@is_dir(ISPC_WEB_PATH."/$file/form")) { $handle2 = opendir(ISPC_WEB_PATH."/$file/form"); while ($form_file = @readdir ($handle2)) {