projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Unsubscribes user from groupNL when unsubscribing from group.
[platal.git]
/
modules
/
xnetgrp.php
diff --git
a/modules/xnetgrp.php
b/modules/xnetgrp.php
index
cc39f46
..
0a40bae
100644
(file)
--- a/
modules/xnetgrp.php
+++ b/
modules/xnetgrp.php
@@
-1222,6
+1222,11
@@
class XnetGrpModule extends PLModule
$mailer->send();
}
+ $nl = Newsletter::forGroup($globals->asso('shortname'));
+ if (!is_null($nl)) {
+ $nl->unsubscribe(null, S::i('uid'));
+ }
+
$domain = $globals->asso('mail_domain');
if (!$domain) {
return true;