//Fixed correct norm in class RequestSql

This commit is contained in:
lLefevre committed 2011-09-26 10:22:35 +00:00
1 parent 5829f12a66
commit 0cc2d7181e
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;