Skip to content

Commit

Permalink
Second fix to clean up "non well formed" notice. Fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
gav- committed Jun 6, 2019
1 parent 78dfe2d commit 0a246ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RESTfm.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ function iniToBytes ($val) {
return "NaN"; // Not a Number
}

if (isset($matches[1])) {
$val = $matches[1];
}

$units = '';
if (isset($matches[2])) {
$units = $matches[2];
Expand Down

0 comments on commit 0a246ad

Please sign in to comment.