diff --git a/app/src/ViewFunctions/SizeForHumans.php b/app/src/ViewFunctions/SizeForHumans.php index 8b92ad2..a9bf09e 100644 --- a/app/src/ViewFunctions/SizeForHumans.php +++ b/app/src/ViewFunctions/SizeForHumans.php @@ -16,7 +16,7 @@ class SizeForHumans extends ViewFunction try { $fileSize = $file->getSize(); } catch (RuntimeException $exception) { - return 0; + return '0B'; } $sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];