diff --git a/listdir.php b/listdir.php index 419aa48..43b2f4e 100644 --- a/listdir.php +++ b/listdir.php @@ -38,7 +38,7 @@ function do_filesize($path, $is_dir){ if($filesize === 0){ - echo "0.00 B"; + return "0.00 B"; } $s = ["B", "KB", "MB", "GB", "TB", "PB"];