Skip to content
Prev Previous commit
Next Next commit
Fix detection of Notifiers
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jul 15, 2019
commit 865c12aa0e624d21d15b351ee5fcbedffa55f11c
14 changes: 3 additions & 11 deletions lib/private/Notification/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,14 @@ class Manager implements IManager {

/** @var IApp[] */
protected $apps;

/** @var INotifier[] */
protected $notifiers;

/** @var array[] */
protected $notifiersInfo;

/** @var string[] */
protected $appClasses;

/** @var INotifier[] */
protected $notifiers;
/** @var string[] */
protected $notifierClasses;

/** @var \Closure[] */
protected $notifiersInfoClosures;

/** @var bool */
protected $preparingPushNotification;

Expand Down Expand Up @@ -167,7 +159,7 @@ public function createNotification(): INotification {
* @since 8.2.0
*/
public function hasNotifiers(): bool {
return !empty($this->notifiersClosures);
return !empty($this->notifiers) || !empty($this->notifierClasses);
}

/**
Expand Down