From 980c99e00c4282bc08e4243b32ccd1ac0872db31 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 30 Mar 2007 09:25:59 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20perte=20des=20centimes=20=E0=20l'afficha?= =?UTF-8?q?ge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index d2bf92c922d..71e6bf92894 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -1842,8 +1842,8 @@ function price($amount, $html=0, $outlangs='') // On pose par defaut 2 decimales $decimal = 2; - $amount = ereg_replace(',','\.',$amount); - $datas = split('\.',$amount); + $amount = ereg_replace(',','.',$amount); + $datas = split('.',$amount); $decpart = $datas[1]; // On augmente au besoin si il y a plus de 2 décimales