From: Anne Limoges Date: Sat, 15 Dec 2012 17:01:43 +0000 (+0100) Subject: Fixes bug with non-integer payments at BPLC. X-Git-Tag: xorg/1.1.7~24 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=996cab6c8ce25db04670c041aa3fbcbd8a012d55;p=platal.git Fixes bug with non-integer payments at BPLC. --- diff --git a/modules/payment/money/bplccyberplus.inc.php b/modules/payment/money/bplccyberplus.inc.php index 46bf7f0..23665ab 100644 --- a/modules/payment/money/bplccyberplus.inc.php +++ b/modules/payment/money/bplccyberplus.inc.php @@ -49,7 +49,7 @@ class BPLCCyberPlus function BPLCCyberPlus($val) { // Improvement: number of digits after the coma might depend from the currency. - $this->val = 100 * strtr(sprintf("%.02f", (float)$val), '.', ','); + $this->val = 100 * strtr($val, ',', '.'); } // }}}