mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 22:23:41 +00:00
when more then one users have the same email, only send the notification once
This commit is contained in:
parent
08546e30f9
commit
9f845beffd
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ function notifyall_post(&$a) {
|
|||
}
|
||||
$sql_extra = ((intval($_REQUEST['test'])) ? sprintf(" AND `email` in ( %s )", $email) : '');
|
||||
|
||||
$recips = q("SELECT `email` FROM `user` WHERE `verified` AND NOT `account_removed` AND NOT `account_expired` $sql_extra");
|
||||
$recips = q("SELECT DISTINCT `email` FROM `user` WHERE `verified` AND NOT `account_removed` AND NOT `account_expired` $sql_extra");
|
||||
|
||||
if(! $recips) {
|
||||
notice( t('No recipients found.') . EOL);
|
||||
|
|
Loading…
Reference in a new issue