mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed problems with simple value, when this value is a string. Tiquet: #2999
This commit is contained in:
parent
d870860c5c
commit
86f6fa6665
@ -1093,7 +1093,8 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
$value = format_for_graph($value, 2);
|
||||
if ( is_numeric($value) )
|
||||
$value = format_for_graph($value, 2);
|
||||
if (!empty($unit_text)) {
|
||||
$value .= " " . $unit_text;
|
||||
}
|
||||
@ -1106,7 +1107,8 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
$value = format_for_graph($value, 2);
|
||||
if ( is_numeric($value) )
|
||||
$value = format_for_graph($value, 2);
|
||||
if (!empty($unit_text))
|
||||
$value .= " " . $unit_text;
|
||||
}
|
||||
@ -1118,7 +1120,8 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
$value = format_for_graph($value, 2);
|
||||
if ( is_numeric($value) )
|
||||
$value = format_for_graph($value, 2);
|
||||
if (!empty($unit_text))
|
||||
$value .= " " . $unit_text;
|
||||
}
|
||||
@ -1130,7 +1133,8 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
$value = format_for_graph($value, 2);
|
||||
if ( is_numeric($value) )
|
||||
$value = format_for_graph($value, 2);
|
||||
if (!empty($unit_text))
|
||||
$value .= " " . $unit_text;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user