Skip to content

Commit

Permalink
Fix: Do not show not year dir
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 7, 2011
1 parent 72459ac commit b75f610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/paiement/rapport.php
Expand Up @@ -128,7 +128,7 @@

clearstatcache();

// Affiche lien sur autres annees
// Show link on other years
$linkforyear=array();
$found=0;
if (is_dir($dir))
Expand All @@ -138,7 +138,7 @@
{
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;
Expand Down

0 comments on commit b75f610

Please sign in to comment.