Fix: Do not show not year dir
This commit is contained in:
parent
72459ac35c
commit
b75f610ec1
@ -128,7 +128,7 @@ print '<br>';
|
|||||||
|
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
// Affiche lien sur autres annees
|
// Show link on other years
|
||||||
$linkforyear=array();
|
$linkforyear=array();
|
||||||
$found=0;
|
$found=0;
|
||||||
if (is_dir($dir))
|
if (is_dir($dir))
|
||||||
@ -138,7 +138,7 @@ if (is_dir($dir))
|
|||||||
{
|
{
|
||||||
while (($file = readdir($handle))!==false)
|
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;
|
$found=1;
|
||||||
$linkforyear[]=$file;
|
$linkforyear[]=$file;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user