From 5acce552a12bb41440ed707f706efd6af7e5bdc5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 27 Jul 2010 10:45:48 +0200 Subject: [PATCH] LSformElement/quota : fixed bug in value rounded. --- public_html/includes/class/class.LSformElement_quota.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSformElement_quota.php b/public_html/includes/class/class.LSformElement_quota.php index 977e3ac9..350e8b63 100644 --- a/public_html/includes/class/class.LSformElement_quota.php +++ b/public_html/includes/class/class.LSformElement_quota.php @@ -136,7 +136,8 @@ class LSformElement_quota extends LSformElement { if (isset($_POST[$this -> name.'_sizeFact'][$key]) && ($_POST[$this -> name.'_sizeFact'][$key]!=1)) { $f = $_POST[$this -> name.'_sizeFact'][$key]; } - $return[$this -> name][$key] = intval(ceil(($val*$f)*$this -> getFactor())); + $val=preg_replace('/,/','.',$val); + $return[$this -> name][$key] = ceil(ceil(($val*$f)*$this -> getFactor())); } } return true;