Permalink
Browse files

fix "PHP Notice(8): A non well formed numeric value encountered" with…

… PHP 7.1
1 parent dc934e9 commit 0ce4994567f9d9e5ef68ef3fdbdcd3dc04d9521b @remicollet remicollet committed Jun 11, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 server/php/UploadHandler.php
@@ -350,6 +350,7 @@ protected function get_error_message($error) {
public function get_config_bytes($val) {
$val = trim($val);
$last = strtolower($val[strlen($val)-1]);
+ $val = (int)$val;
switch ($last) {
case 'g':
$val *= 1024;

0 comments on commit 0ce4994

Please sign in to comment.