From dfbbf90e0fda68d03b3f51e5c9e62994480e47d6 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Sat, 1 Feb 2014 14:42:09 +0100 Subject: [PATCH] Fixed returnBytes (breaks are removed) --- core/lib/Thelia/Install/CheckPermission.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/lib/Thelia/Install/CheckPermission.php b/core/lib/Thelia/Install/CheckPermission.php index 6ce7cb7c1..4ace03c8b 100644 --- a/core/lib/Thelia/Install/CheckPermission.php +++ b/core/lib/Thelia/Install/CheckPermission.php @@ -394,17 +394,15 @@ class CheckPermission extends BaseInstall { $val = trim($val); $last = strtolower($val[strlen($val)-1]); + // Do not add breaks in the switch below switch ($last) { // The 'G' modifier is available since PHP 5.1.0 case 'g': $val *= 1024; - break; case 'm': $val *= 1024; - break; case 'k': $val *= 1024; - break; } return $val;