Overview
SHA1:c909571998abc4f7f308ddf047bcf822b1316195
Date: 2019-01-11 17:35:04
User: bohwaz
Comment:Fix lien objet
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2019-01-18
10:22
[8cc57b06eb] Insensibilité à la casse pour la correspondance quand on fait une demande de récupération de mot de passe (user: bohwaz, tags: trunk, stable)
2019-01-17
10:01
[511aee5412] Merge avec branche trunk (user: bohwaz, tags: dev)
2019-01-11
17:35
[c909571998] Fix lien objet (user: bohwaz, tags: trunk, stable)
17:34
[0a9b20204a] ne rien envoyer avant d'avoir vérifier toutes les adresses email destinataires (user: bohwaz, tags: trunk)
Changes

Modified src/include/lib/Garradin/Membres.php from [71d5d654d3] to [f75ceb8321].

   327    327   
   328    328       public function sendMessage(array $recipients, $subject, $message, $send_copy)
   329    329       {
   330    330           $config = Config::getInstance();
   331    331   
   332    332           foreach ($recipients as $recipient)
   333    333           {
   334         -            if (!SMTP::checkEmailIsValid($recipient, true))
          334  +            if (!SMTP::checkEmailIsValid($recipient->email, true))
   335    335               {
   336         -                throw new UserException(sprintf('Adresse email invalide : "%s". Aucun message n\'a été envoyé.', $recipient));
          336  +                throw new UserException(sprintf('Adresse email invalide : "%s". Aucun message n\'a été envoyé.', $recipient->email));
   337    337               }
   338    338           }
   339    339   
   340    340           foreach ($recipients as $recipient)
   341    341           {
   342    342               Utils::sendEmail(Utils::EMAIL_CONTEXT_BULK, $recipient->email, $subject, $message, $recipient->id);
   343    343           }