From 8bdaf8035dbfb546b8283faca759fb6da7c4fc18 Mon Sep 17 00:00:00 2001 From: Jazz Date: Mon, 18 Dec 2017 12:37:14 +0200 Subject: [PATCH] CRM-21591 Fix PHP Notice A non well formed numeric value encountered on Misc settings page PHP Notice: A non well formed numeric value encountered --- CRM/Utils/Number.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Utils/Number.php b/CRM/Utils/Number.php index 2b8c063cd5..f79cd1db1f 100644 --- a/CRM/Utils/Number.php +++ b/CRM/Utils/Number.php @@ -88,6 +88,7 @@ class CRM_Utils_Number { public static function formatUnitSize($size, $checkForPostMax = FALSE) { if ($size) { $last = strtolower($size{strlen($size) - 1}); + $size = (int) $size; switch ($last) { // The 'G' modifier is available since PHP 5.1.0 -- 2.25.1