From 996cab6c8ce25db04670c041aa3fbcbd8a012d55 Mon Sep 17 00:00:00 2001 From: Anne Limoges Date: Sat, 15 Dec 2012 18:01:43 +0100 Subject: [PATCH] Fixes bug with non-integer payments at BPLC. --- modules/payment/money/bplccyberplus.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ',', '.'); } // }}} -- 2.1.4