X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=notifyall%2Fnotifyall.php;fp=notifyall%2Fnotifyall.php;h=3f2cdc890ab0fa6f565a587996f026d7c9d934ea;hb=9f845beffd0e3d54d3c0846d879c99f4a271b791;hp=2f47838f78fad90fdd21da248a307f3aac5d5943;hpb=08546e30f997360e08e0c7d8730842eede6cbf48;p=friendica-addons.git diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index 2f47838f..3f2cdc89 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -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);