mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed problems with simple value, when this value is a string. Tiquet: #2999
(cherry picked from commit 86f6fa66651c4aa43b8398afbeee39fad4fb6b66)
This commit is contained in:
parent
84615a259d
commit
7acd0c7446
@ -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