mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +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,6 +1093,7 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
if ( is_numeric($value) )
|
||||
$value = format_for_graph($value, 2);
|
||||
if (!empty($unit_text)) {
|
||||
$value .= " " . $unit_text;
|
||||
@ -1106,6 +1107,7 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
if ( is_numeric($value) )
|
||||
$value = format_for_graph($value, 2);
|
||||
if (!empty($unit_text))
|
||||
$value .= " " . $unit_text;
|
||||
@ -1118,6 +1120,7 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
if ( is_numeric($value) )
|
||||
$value = format_for_graph($value, 2);
|
||||
if (!empty($unit_text))
|
||||
$value .= " " . $unit_text;
|
||||
@ -1130,6 +1133,7 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
|
||||
$value = __('Unknown');
|
||||
}
|
||||
else {
|
||||
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