X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetevents.php;h=3dbe0c68d32088851cd37a03ad0d9e577087095b;hb=dd4f932d8e4488f98ac541a94d158fbd72a50e3c;hp=480ced4494086998c87c1156a5f1db9788493816;hpb=c54b27c755c42decdc50c35f5e5db692c8203ba3;p=platal.git diff --git a/modules/xnetevents.php b/modules/xnetevents.php index 480ced4..3dbe0c6 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -463,12 +463,14 @@ class XnetEventsModule extends PLModule Post::v('intitule')." - ".$globals->asso('nom'), Post::v('site'), $money_defaut, Post::v('confirmation'), 0, 999, - $globals->asso('id'), $eid); + $globals->asso('id'), $eid, Post::v('payment_public') == 'yes'); if ($p->accept()) { $p->submit(); } else { - $page->assign('paiement_message', Post::v('confirmation')); - $page->assign('paiement_site', Post::v('site')); + $page->assign('payment_message', Post::v('confirmation')); + $page->assign('payment_site', Post::v('site')); + $page->assign('payment_public', Post::v('payment_public') == 'yes'); + $page->assign('error', true); $error = true; } } @@ -507,7 +509,7 @@ class XnetEventsModule extends PLModule $res = XDB::query("SELECT stamp FROM requests WHERE type = 'paiements' AND data LIKE {?}", - PayReq::same_event($eid, $globals->asso('id'))); + PayReq::same_event($eid, $globals->asso('id'))); $stamp = $res->fetchOneCell(); if ($stamp) { $evt['paiement_id'] = -2;