Skip to content

Commit

Permalink
fix for #244 (#245)
Browse files Browse the repository at this point in the history
php renvoie une erreur quand $val contient une lettre...
  • Loading branch information
remrem committed Apr 15, 2017
1 parent 5fcf813 commit 0b27707
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/inc/filesystem.php
Expand Up @@ -28,6 +28,7 @@ function return_bytes($val)
{
$val = trim($val);
$prefix = strtolower($val[strlen($val)-1]);
$val = substr($val, 0, -1);
switch ($prefix) {
case 'g':
$val *= 1024*1024*1024;
Expand Down

0 comments on commit 0b27707

Please sign in to comment.