projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13abea2
)
CRM-21591 Fix PHP Notice A non well formed numeric value encountered on Misc settings...
author
Jazz
<Jazz-Man@users.noreply.github.com>
Mon, 18 Dec 2017 10:37:14 +0000
(12:37 +0200)
committer
Seamus Lee
<seamuslee001@gmail.com>
Wed, 10 Jan 2018 23:01:34 +0000
(10:01 +1100)
PHP Notice: A non well formed numeric value encountered
CRM/Utils/Number.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Number.php
b/CRM/Utils/Number.php
index 2b8c063cd585916a4633d06ab6816d6478478d21..f79cd1db1fbc54cbf6d641b4ce64e9f8a44b9a75 100644
(file)
--- 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