X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fpayment%2Fmoney.inc.php;h=a79f03ae819b2de2aae1a7dcb24354070c917fd9;hb=eaf30d86cc99df2414cf4f171a9b0f11b0561e3b;hp=ad19d20692849ed500a454603a94b3d7d09c4bdd;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/modules/payment/money.inc.php b/modules/payment/money.inc.php index ad19d20..a79f03a 100644 --- a/modules/payment/money.inc.php +++ b/modules/payment/money.inc.php @@ -37,7 +37,7 @@ class Payment // }}} // {{{ constructor - + function Payment($ref=-1) { global $globals; @@ -46,7 +46,7 @@ class Payment FROM {$globals->money->mpay_tprefix}paiements WHERE id={?}", $r); list($this->id, $this->text, $this->url, $flags, $this->mail, $this->montant_min, $this->montant_max, $this->montant_def, $this->asso_id) = $res->fetchOneRow(); - + $this->montant_min = (float)$this->montant_min; $this->montant_max = (float)$this->montant_max; $this->flags = new Flagset($flags); @@ -54,14 +54,14 @@ class Payment // }}} // {{{ function check() - + function check($value) { $v = (float)strtr($value, ',', '.'); if ($this->montant_min > $v) { - return "Montant inférieur au minimum autorisé ({$this->montant_min})."; + return "Montant inférieur au minimum autorisé ({$this->montant_min})."; } elseif ($v > $this->montant_max) { - return "Montant supérieur au maximum autorisé ({$this->montant_max})."; + return "Montant supérieur au maximum autorisé ({$this->montant_max})."; } else { return true; } @@ -114,12 +114,12 @@ class PayMethod $i = $id==-1 ? $globals->money->mpay_def_meth : $id; $res = XDB::query("SELECT id,text,include FROM {$globals->money->mpay_tprefix}methodes WHERE id={?}", $i); list($this->id, $this->text, $this->inc) = $res->fetchOneRow(); - } + } // }}} } // }}} -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>