Fix error in notifyall addon

This commit is contained in:
Art4 2025-03-13 09:36:34 +00:00
parent 21a7529a0e
commit dda6710b10

View file

@ -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;
}