From 6f2b23a4b880d6a8ee8eac86fd6a3257fa7e37fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 10 Jul 2009 23:46:00 +0200 Subject: [PATCH] Prevents emails to be sent to '' when the group has no email. --- modules/xnetgrp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index b194ceb..e6ebd1e 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -653,7 +653,8 @@ class XnetGrpModule extends PLModule . "à l'adresse : support@polytechnique.org\n"; if (!$to) { - $to = $globals->asso("mail").", support@polytechnique.org"; + $to = ($globals->asso('mail') != '') ? $globals->asso('mail') . ', ' : ''; + $to .= 'support@polytechnique.org'; $append = "\n-- \nLe groupe ".$globals->asso("nom") ." n'a pas d'administrateur, l'équipe de" ." Polytechnique.org a été prévenue et va rapidement" -- 2.1.4