diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php index 38dbb36817d..aef22aa41c4 100644 --- a/htdocs/compta/paiement/rapport.php +++ b/htdocs/compta/paiement/rapport.php @@ -128,7 +128,7 @@ print '
'; clearstatcache(); -// Affiche lien sur autres annees +// Show link on other years $linkforyear=array(); $found=0; if (is_dir($dir)) @@ -138,7 +138,7 @@ if (is_dir($dir)) { while (($file = readdir($handle))!==false) { - if (is_dir($dir.'/'.$file) && ! preg_match('/^\./',$file)) + if (is_dir($dir.'/'.$file) && ! preg_match('/^\./',$file) && is_numeric($file)) { $found=1; $linkforyear[]=$file;