X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/1581d41cc21d3ec5609fe3d2c1e6acec2b348170..7a4383a700b77579a870cd3c938ed23622a61396:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index cfc7dce..1e084fb 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -190,6 +190,9 @@ function jirafeau_ini_to_bytes($value) $modifier = substr($value, -1); $bytes = substr($value, 0, -1); switch (strtoupper($modifier)) { + default: + return intval($value); + break; case 'P': $bytes *= 1024; // no break @@ -243,7 +246,6 @@ function jirafeau_get_max_upload_chunk_size_bytes($max_upload_chunk_size_bytes = } return $size; } - $size = min( jirafeau_get_max_upload_size_bytes(), $max_upload_chunk_size_bytes