From dda6710b1064559621ac3f4f720fe8b7ef6533f9 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 13 Mar 2025 09:36:34 +0000 Subject: [PATCH] Fix error in notifyall addon --- notifyall/notifyall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index d37bac56..387fa1ab 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -50,7 +50,7 @@ function notifyall_post() $recipients = DBA::p("SELECT DISTINCT `email` FROM `user`" . DBA::buildCondition($condition), $condition); - if (! $recipients) { + if (! $recipients || !is_iterable($recipients)) { DI::sysmsg()->addNotice(DI::l10n()->t('No recipients found.')); return; }