From 427ef7074eef68e0bc50a644d8bee81e18568fa6 Mon Sep 17 00:00:00 2001 From: Anne Limoges Date: Mon, 18 Feb 2013 17:53:49 +0100 Subject: [PATCH] Typo. --- modules/xnetevents.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/xnetevents.php b/modules/xnetevents.php index feb9d7f..f5853aa 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -274,7 +274,7 @@ class XnetEventsModule extends PLModule foreach ($moments as $j => $v) { $subs[$j] = intval($v); - // retreive ohter field when more than one person + // retrieve other field when more than one person if ($subs[$j] == 2) { if (!isset($pers[$j]) || !is_numeric($pers[$j]) || $pers[$j] < 0) { $page->trigError("Tu dois choisir un nombre d'invités correct !"); @@ -319,7 +319,12 @@ class XnetEventsModule extends PLModule $total += $nb; } if ($updated !== false) { - $page->trigSuccess('Ton inscription à l\'événement a été mise à jour avec succès.'); + $evt = get_event_detail($eid); + if ($evt['topay'] > 0) { + $page->trigSuccess('Ton inscription à l\'événement a été mise à jour avec succès, tu peux payer ta participation en cliquant ci-dessous'); + } else { + $page->trigSuccess('Ton inscription à l\'événement a été mise à jour avec succès.'); + } subscribe_lists_event(S::i('uid'), $evt['short_name'], ($total > 0 ? 1 : 0), 0); if ($evt['subscription_notification'] != 'nobody') { -- 2.1.4