diff --git a/index.php b/index.php index 2d503c7..794c7b2 100644 --- a/index.php +++ b/index.php @@ -90,11 +90,7 @@ $realDir = "images$shortPath"; foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..') { - if ($file == '..') - { - echo "
\n"; - } - elseif (is_dir("$realDir/$file")) + if (is_dir("$realDir/$file")) { $folders[] = array( "name" => $file, "link" => "$scriptUrlPath$shortPath/$file", "preview" => getAlbumPreview("$realDir/$file") ); } @@ -116,7 +112,7 @@ else ?> - +