From 75d99fb1dd3e776ebe56332e2f1d8bed74cbc9a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Thu, 12 Jul 2001 18:09:46 +0000 Subject: [PATCH] Fixed a wrong comparaison --- lib.inc.php3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.inc.php3 b/lib.inc.php3 index 5f05066185..b7c2bf5a44 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -966,7 +966,7 @@ function format_byte_down($value, $limes = 6, $comma = 0) $value = round($value/(1024/$dh))/$dh; $unit = $GLOBALS['byteUnits'][1]; } - if ($unit != 'Byte') { + if ($unit != $GLOBALS['byteUnits'][0]) { $return_value = number_format($value, $comma, $GLOBALS['number_decimal_separator'], $GLOBALS['number_thousands_separator']); } else { $return_value = number_format($value, 0, $GLOBALS['number_decimal_separator'], $GLOBALS['number_thousands_separator']);