Merge pull request #1344 from friendica/bug/nofifyall

[notifyall] Fix email selection
This commit is contained in:
Hypolite Petovan 2023-01-03 10:01:08 -05:00 committed by GitHub
commit 76233e7646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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.'));