//Fixed correct norm in class RequestSql

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8765 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre committed 2011-09-26 10:22:35 +00:00
1 parent 6a39d24f05
commit 12942dd4a8
1 file changed
+4 -2
+4 -2
View File
@@ -81,10 +81,12 @@ else
die(); die();
} }
function return_bytes($val) { function return_bytes($val)
{
$val = trim($val); $val = trim($val);
$last = strtolower($val[strlen($val)-1]); $last = strtolower($val[strlen($val)-1]);
switch($last) { switch ($last)
{
// Le modifieur 'G' est disponible depuis PHP 5.1.0 // Le modifieur 'G' est disponible depuis PHP 5.1.0
case 'g': case 'g':
$val *= 1024; $val *= 1024;