diff options
author | Mario <mario@mariovavti.com> | 2021-03-03 12:39:41 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-03 14:11:29 +0100 |
commit | 3d264f5a55f340e3c20c1181c8b4578abecf3f1c (patch) | |
tree | 6c5eba25568a65e7317588717df048042a45685a /include/environment.php | |
parent | fbb1d6aa41d9eb7a27b4a8bc79747ac0797db0c7 (diff) | |
download | volse-hubzilla-3d264f5a55f340e3c20c1181c8b4578abecf3f1c.tar.gz volse-hubzilla-3d264f5a55f340e3c20c1181c8b4578abecf3f1c.tar.bz2 volse-hubzilla-3d264f5a55f340e3c20c1181c8b4578abecf3f1c.zip |
php8: fix warnings during install procedure
(cherry picked from commit 48bae9d4219735bc44f4ee72228d19d3e6b9efc9)
Diffstat (limited to 'include/environment.php')
-rw-r--r-- | include/environment.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/environment.php b/include/environment.php index 96a614821..274eca214 100644 --- a/include/environment.php +++ b/include/environment.php @@ -52,17 +52,18 @@ function getPhpiniUploadLimits() { */ function phpiniSizeToBytes($val) { $val = trim($val); + $num = (double)$val; $unit = strtolower($val[strlen($val)-1]); switch($unit) { case 'g': - $val *= 1024; + $num *= 1024; case 'm': - $val *= 1024; + $num *= 1024; case 'k': - $val *= 1024; + $num *= 1024; default: break; } - return (int)$val; + return (int)$num; } |