[notifyall] Fix email selection #1344

Merged
nupplaphil merged 1 commits from bug/nofifyall into develop 2023-01-03 16:01:09 +01:00
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.'));