From 1f170710bd0814667fc73167f245e38086e360b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Sun, 3 Jun 2012 17:47:40 +0200 Subject: [PATCH] Force use of an int when saving paid amount. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/xnetevents.php | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.1.4