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