]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix error in notifyall addon
authorArt4 <art4@wlabs.de>
Thu, 13 Mar 2025 09:36:34 +0000 (09:36 +0000)
committerArt4 <art4@wlabs.de>
Thu, 13 Mar 2025 09:36:34 +0000 (09:36 +0000)
notifyall/notifyall.php

index d37bac568678fed563f405bb57b7c79270f753b8..387fa1ab81ddb1d75cb61a05feddf9ffef01429d 100644 (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;
        }