From be80e77e938f2d139645bd3165926cdccf8c6926 Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 3 Jan 2023 14:01:45 +0100 Subject: [PATCH] [notifyall] Fix email selection FollowUp #1313 --- notifyall/notifyall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index ee05407b..727290b1 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -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.'));