diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 3a43d05aea..f7b7b92ea7 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -2656,7 +2656,13 @@ function pandora_setlocale() { } function remove_right_zeros ($value) { - $value_to_return = rtrim($value, "0"); - return rtrim($value_to_return, "."); + $is_decimal = explode(".", $value); + if (isset($is_decimal[1])) { + $value_to_return = rtrim($value, "0"); + return rtrim($value_to_return, "."); + } + else { + return $value; + } } ?>