Skip to content

Commit

Permalink
Merge pull request #11505 from seamuslee001/Jazz-Man-patch-2
Browse files Browse the repository at this point in the history
CRM-21591 Fix PHP Notice A non well formed numeric value encountered …
  • Loading branch information
eileenmcnaughton authored Jan 11, 2018
2 parents 13abea2 + 8bdaf80 commit 06ec1f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Utils/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public static function createTruncatedDecimal($keyValue, $precision) {
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

Expand Down

0 comments on commit 06ec1f3

Please sign in to comment.