fix when file name is '0'.

This commit is contained in:
Miroslav Šedivý 2021-12-28 19:08:40 +01:00
parent fb5db75b44
commit c963b349e1

View File

@ -242,11 +242,8 @@ function build_blocks( $items, $folder )
$file_time = date("U", filemtime($item)); $file_time = date("U", filemtime($item));
// FILES // FILES
if( $item )
{
$objects['files'][$file_time . "-" . $item] = $item; $objects['files'][$file_time . "-" . $item] = $item;
} }
}
foreach($objects['directories'] as $c => $file) foreach($objects['directories'] as $c => $file)
{ {