Update Helpers.php

This commit is contained in:
bergware
2023-12-02 19:25:03 +01:00
parent 697b91704a
commit d1b42cac03

View File

@@ -49,7 +49,7 @@ function my_time($time, $fmt=NULL) {
}
function my_temp($value) {
global $display;
$unit = _var($display,'unit');
$unit = _var($display,'unit','C');
$number = _var($display,'number','.,');
return is_numeric($value) ? (($unit=='F' ? fahrenheit($value) : str_replace('.', $number[0], $value)).' °'.$unit) : $value;
}