correction liste template
[mtweb] / mw / env / modules / mw_env_out.php
index 00f4a84..e61b8cc 100644 (file)
@@ -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);
       }