Skip to content

Commit 656dc47

Browse files
committed
fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContext
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent aef905a commit 656dc47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/Notification/Manager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ public function createNotification(): INotification {
217217
* @since 8.2.0
218218
*/
219219
public function hasNotifiers(): bool {
220-
return !empty($this->notifiers) || !empty($this->notifierClasses);
220+
return !empty($this->notifiers)
221+
|| !empty($this->notifierClasses)
222+
|| (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices()));
221223
}
222224

223225
/**

0 commit comments

Comments
 (0)