Skip to content

Commit 21f9ea0

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContext
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent e8ee8d3 commit 21f9ea0

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
@@ -207,7 +207,9 @@ public function createNotification(): INotification {
207207
* @since 8.2.0
208208
*/
209209
public function hasNotifiers(): bool {
210-
return !empty($this->notifiers) || !empty($this->notifierClasses);
210+
return !empty($this->notifiers)
211+
|| !empty($this->notifierClasses)
212+
|| (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices()));
211213
}
212214

213215
/**

0 commit comments

Comments
 (0)