]> git.mxchange.org Git - friendica-addons.git/commitdiff
[notifyall] Fix email selection
authorPhilipp <admin@philipp.info>
Tue, 3 Jan 2023 13:01:45 +0000 (14:01 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Jan 2023 13:01:45 +0000 (14:01 +0100)
FollowUp #1313

notifyall/notifyall.php

index ee05407bca3b53d68a1678c55014362506119925..727290b1c5a0451ed9e5c2717a27d1c1c79ee5be 100644 (file)
@@ -50,7 +50,7 @@ function notifyall_post(App $a)
                $condition['email'] = array_column($adminEmails, 'email');
        }
 
-       $recipients = DBA::p("SELECT DISTINCT `email` FROM `user`" . DBA::buildCondition($condition));
+       $recipients = DBA::p("SELECT DISTINCT `email` FROM `user`" . DBA::buildCondition($condition), $condition);
 
        if (! $recipients) {
                DI::sysmsg()->addNotice(DI::l10n()->t('No recipients found.'));