From c963b349e148bca859af7b91b0ad3795e9e6ff7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 28 Dec 2021 19:08:40 +0100 Subject: [PATCH] fix when file name is '0'. --- index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.php b/index.php index 5998391..ceee0ac 100644 --- a/index.php +++ b/index.php @@ -242,10 +242,7 @@ function build_blocks( $items, $folder ) $file_time = date("U", filemtime($item)); // FILES - if( $item ) - { - $objects['files'][$file_time . "-" . $item] = $item; - } + $objects['files'][$file_time . "-" . $item] = $item; } foreach($objects['directories'] as $c => $file)