From bab0e74a0c83b1fec5b392d206ac50836c6a7258 Mon Sep 17 00:00:00 2001 From: Fabio Lovato Date: Thu, 31 Dec 2020 12:35:33 +0100 Subject: [PATCH] Fix problema allineamento record nelle viste --- src/Intl/Formatter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Intl/Formatter.php b/src/Intl/Formatter.php index d0f4d38e0..9e3dca912 100755 --- a/src/Intl/Formatter.php +++ b/src/Intl/Formatter.php @@ -137,7 +137,10 @@ class Formatter public function formatNumber($value, $decimals = null) { $value = trim($value); - $value = floatval($value); + + if (is_numeric($value)) { + $value = floatval($value); + } if (isset($decimals)) { $original = $this->getPrecision();