From b75f610ec106d8ef2d74f5cdb044193e4810a44c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 7 Mar 2011 02:13:10 +0000 Subject: [PATCH] Fix: Do not show not year dir --- htdocs/compta/paiement/rapport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;