Skip to content

Commit 349196d

Browse files
nickvergessenAndyScherzinger
authored andcommitted
fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContext
Signed-off-by: Joas Schilling <[email protected]>
1 parent 9fdc7fb commit 349196d

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
@@ -209,7 +209,9 @@ public function createNotification(): INotification {
209209
* @since 8.2.0
210210
*/
211211
public function hasNotifiers(): bool {
212-
return !empty($this->notifiers) || !empty($this->notifierClasses);
212+
return !empty($this->notifiers)
213+
|| !empty($this->notifierClasses)
214+
|| (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices()));
213215
}
214216

215217
/**

0 commit comments

Comments
 (0)