Update index.php

This commit is contained in:
Hal Gatewood 2016-02-09 13:06:27 -06:00
parent 5d177ecb63
commit 895c420405

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
Free PHP File Directory Listing Script - Version 1.6 Free PHP File Directory Listing Script - Version 1.7
The MIT License (MIT) The MIT License (MIT)
@ -160,7 +160,7 @@ function build_blocks( $items, $folder )
// IGNORE FILE // IGNORE FILE
if(in_array($item, $ignore_file_list)) { continue; } if(in_array($item, $ignore_file_list)) { continue; }
if( $folder ) if( $folder && $item )
{ {
$item = "$folder/$item"; $item = "$folder/$item";
} }
@ -181,7 +181,10 @@ function build_blocks( $items, $folder )
$file_time = date("U", filemtime($item)); $file_time = date("U", filemtime($item));
// FILES // FILES
$objects['files'][$file_time . "-" . $item] = $item; if( $item )
{
$objects['files'][$file_time . "-" . $item] = $item;
}
} }
foreach($objects['directories'] as $c => $file) foreach($objects['directories'] as $c => $file)