diff options
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php index e7c9ac8015d..7f34d895821 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -223,6 +223,10 @@ class OC_Helper { * Makes 2048 to 2 kB. */ public static function humanFileSize( $bytes ) { + if( $bytes < 0 ) { + $l = OC_L10N::get('lib'); + return $l->t("couldn't be determined"); + } if( $bytes < 1024 ) { return "$bytes B"; } |