Fixes bug with non-integer payments at BPLC.
authorAnne Limoges <anne.limoges_git@polytechnique.org>
Sat, 15 Dec 2012 17:01:43 +0000 (18:01 +0100)
committerAnne Limoges <anne.limoges_git@polytechnique.org>
Sat, 15 Dec 2012 17:02:14 +0000 (18:02 +0100)
modules/payment/money/bplccyberplus.inc.php

index 46bf7f0..23665ab 100644 (file)
@@ -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, ',', '.');
     }
 
     // }}}