Fixed a wrong comparaison

This commit is contained in:
Loïc Chapeaux
2001-07-12 18:09:46 +00:00
parent 5cf0f5b863
commit 75d99fb1dd

View File

@@ -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']);