From fce0f5bacb726a5ca3bb9c2743960fca5e7edf82 Mon Sep 17 00:00:00 2001 From: Prasath Mani Date: Mon, 7 Nov 2022 22:42:07 +0530 Subject: [PATCH] Fix warning message --- tinyfilemanager.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 5ac361f..9af0df7 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1,6 +1,6 @@ 'Directory path', 'Username2' => 'Directory path', ...) -$directories_users = array(); - // input encoding for iconv $iconv_input_encoding = 'UTF-8'; @@ -2151,9 +2147,9 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white '.fm_get_filesize($all_files_size).'' ?> '.$num_files.'' ?> '.$num_folders.'' ?> - + @@ -3113,7 +3109,7 @@ function fm_download_file($fileLocation, $fileName, $chunkSize = 1024) fseek($fp, $range); - while (!feof($fp) and (connection_status() == 0)) { + while (!@feof($fp) and (connection_status() == 0)) { set_time_limit(0); print(@fread($fp, 1024*$chunkSize)); flush();