From eefcb5168f6353f56399fd6fa594e2b221d43e5d Mon Sep 17 00:00:00 2001 From: dj3c1t Date: Fri, 21 Dec 2012 20:35:00 +0100 Subject: [PATCH] correction liste template --- mw/env/modules/mw_env_out.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mw/env/modules/mw_env_out.php b/mw/env/modules/mw_env_out.php index 00f4a84..e61b8cc 100644 --- a/mw/env/modules/mw_env_out.php +++ b/mw/env/modules/mw_env_out.php @@ -52,7 +52,7 @@ function _out_pathes($out_dir, $pathes = array()){ if($dh = opendir($out_dir)){ while(($file = readdir($dh)) !== false){ - if(is_dir($out_dir.$file) && substr($file, 0 ,1) != ".") $pathes[] = $file; + if(is_dir($out_dir.$file) && substr($file, 0 ,1) != "." && !in_array($file, $pathes)) $pathes[] = $file; } closedir($dh); } -- 2.1.4