PHPStan level 3 #1603

Merged
nupplaPhil merged 15 commits from Art4/friendica-addons:phpstan-level-3 into develop 2025-04-27 02:17:42 +02:00
Showing only changes of commit dda6710b10 - Show all commits

Fix error in notifyall addon

Art4 2025-03-13 09:36:34 +00:00

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