[notifyall] Fix email selection

FollowUp #1313
pull/1344/head
Philipp 2023-01-03 14:01:45 +01:00 committed by GitHub
parent 14dfd24d11
commit be80e77e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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