X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetevents.php;h=43fa0a5d831fba25e7544aa46ce2960d65b3dd76;hb=fc4714d68d2f9e0a08b0d1f7000c75f930afcde6;hp=b16829e7dbe2ac95be2ea6ea425ac004c8726097;hpb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;p=platal.git diff --git a/modules/xnetevents.php b/modules/xnetevents.php index b16829e..43fa0a5 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -203,7 +203,8 @@ class XnetEventsModule extends PLModule } global $globals; - $res = XDB::query("SELECT stamp FROM requests + $res = XDB::query("SELECT stamp + FROM requests WHERE type = 'paiements' AND data LIKE {?}", PayReq::same_event($evt['eid'], $globals->asso('id'))); $page->assign('validation', $res->numRows()); @@ -494,8 +495,9 @@ class XnetEventsModule extends PLModule $evt = $res->fetchOneAssoc(); // find out if there is already a request for a payment for this event require_once 'validations.inc.php'; - $res = XDB::query("SELECT stamp FROM requests - WHERE type = 'paiements' AND data LIKE {?}", + $res = XDB::query("SELECT stamp + FROM requests + WHERE type = 'paiements' AND data LIKE {?}", PayReq::same_event($eid, $globals->asso('id'))); $stamp = $res->fetchOneCell(); if ($stamp) {