From: Raphaël Barrois Date: Sun, 3 Jun 2012 15:47:40 +0000 (+0200) Subject: Force use of an int when saving paid amount. X-Git-Tag: xorg/1.1.6~1^2~6 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1f170710bd0814667fc73167f245e38086e360b6;p=platal.git Force use of an int when saving paid amount. Signed-off-by: Raphaël Barrois --- diff --git a/modules/xnetevents.php b/modules/xnetevents.php index 041c8c0..f99a4b6 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -611,6 +611,12 @@ class XnetEventsModule extends PLModule $member->uid, $evt['eid']); $paid = $res->fetchOneCell(); + + // Ensure we have an integer + if ($paid == null) { + $paid = 0; + } + $nbs = Post::v('nb', array()); $paid_inserted = false;