From: Stéphane Jacob Date: Fri, 10 Jul 2009 21:46:00 +0000 (+0200) Subject: Prevents emails to be sent to '' when the group has no email. X-Git-Tag: xorg/0.10.1~18 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=6f2b23a4b880d6a8ee8eac86fd6a3257fa7e37fc;p=platal.git Prevents emails to be sent to '' when the group has no email. --- 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"