projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implements export() and fromExport() on UFOs.
[platal.git]
/
modules
/
xnetgrp
/
mail.inc.php
diff --git
a/modules/xnetgrp/mail.inc.php
b/modules/xnetgrp/mail.inc.php
index
891146a
..
eadeb16
100644
(file)
--- a/
modules/xnetgrp/mail.inc.php
+++ b/
modules/xnetgrp/mail.inc.php
@@
-67,7
+67,7
@@
function _send_xnet_mail($user, $body, $wiki, $mailer, $replyto = null)
$text = str_ireplace(array('<cher>', '<nom>', '<prenom>'),
array($dear, $lastname, $firstname), $body);
$text = str_ireplace(array('<cher>', '<nom>', '<prenom>'),
array($dear, $lastname, $firstname), $body);
- $mailer->
add
To($user);
+ $mailer->
set
To($user);
if ($replyto) {
$mailer->addHeader('Reply-To', $replyto);
}
if ($replyto) {
$mailer->addHeader('Reply-To', $replyto);
}
@@
-100,11
+100,11
@@
function send_xnet_mails($from, $sujet, $body, $wiki, $tos, $replyto = null, $up
} else {
$email = $user;
}
} else {
$email = $user;
}
- if ($sent[$email]) {
- continue;
+
+ if (!isset($sent[$email])) {
+ _send_xnet_mail($user, $body, $wiki, $mailer, $replyto);
+ $sent[$email] = true;
}
}
- _send_xnet_mail($user, $body, $wiki, $mailer, $replyto);
- $sent[$email] = true;
}
}
}
}