diff -Naur dolibarrcvs/htdocs/compta/facture/document.php dolididrik/htdocs/compta/facture/document.php --- dolibarrcvs/htdocs/compta/facture/document.php 2006-09-13 19:56:32.000000000 +0100 +++ dolididrik/htdocs/compta/facture/document.php 2006-10-21 18:34:05.000000000 +0100 @@ -131,7 +131,8 @@ $i=0; while (($file = readdir($handle))!==false) { - if (!is_dir($dir.$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS') + if (!is_dir($dir.$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS' + && ! eregi('\.meta$',$file)) { $filearray[$i]=$file; $totalsize+=filesize($upload_dir."/".$file);