From: Florent Bruneau Date: Sun, 2 Jan 2011 17:02:46 +0000 (+0100) Subject: ML-List errors during registration are non-fatal (but still logged). X-Git-Tag: xorg/1.0.2~32^2~3 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e78be37f294074452268398f01a4fd59ee37dd48;p=platal.git ML-List errors during registration are non-fatal (but still logged). Signed-off-by: Florent Bruneau --- diff --git a/modules/register.php b/modules/register.php index 331f618..40e5322 100644 --- a/modules/register.php +++ b/modules/register.php @@ -374,8 +374,13 @@ class RegisterModule extends PLModule XDB::execute('INSERT IGNORE INTO group_members (uid, asso_id) VALUES ({?}, {?})', $uid, $asso_id); - $mmlist = new MMList($user); - $mmlist->subscribe("promo" . $yearpromo); + try { + $mmlist = new MMList($user); + $mmlist->subscribe("promo" . $yearpromo); + } catch (Exception $e) { + PlErrorReport::report($e); + $page->trigError("L'inscription à la liste promo" . $yearpromo . " a échouée."); + } } break; case 'nl':