forked from friendica/friendica-addons
Fix error in notifyall addon
This commit is contained in:
parent
21a7529a0e
commit
dda6710b10
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue