Fixed returnBytes (breaks are removed)

This commit is contained in:
Franck Allimant
2014-02-01 14:42:09 +01:00
parent 89653f452b
commit dfbbf90e0f

View File

@@ -394,17 +394,15 @@ class CheckPermission extends BaseInstall
{ {
$val = trim($val); $val = trim($val);
$last = strtolower($val[strlen($val)-1]); $last = strtolower($val[strlen($val)-1]);
// Do not add breaks in the switch below
switch ($last) { switch ($last) {
// The 'G' modifier is available since PHP 5.1.0 // The 'G' modifier is available since PHP 5.1.0
case 'g': case 'g':
$val *= 1024; $val *= 1024;
break;
case 'm': case 'm':
$val *= 1024; $val *= 1024;
break;
case 'k': case 'k':
$val *= 1024; $val *= 1024;
break;
} }
return $val; return $val;