aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-04-30 12:08:10 +0200
committerJoas Schilling <coding@schilljs.com>2019-07-15 15:12:43 +0200
commit865c12aa0e624d21d15b351ee5fcbedffa55f11c (patch)
tree99c07c00668c9185f446725f968b1d74142090e6 /lib
parent44bc697a93309522cd955be32b4f469c526d268c (diff)
downloadnextcloud-server-865c12aa0e624d21d15b351ee5fcbedffa55f11c.tar.gz
nextcloud-server-865c12aa0e624d21d15b351ee5fcbedffa55f11c.zip
Fix detection of Notifiers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Notification/Manager.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php
index df54265a7ad..2ed7aa7c176 100644
--- a/lib/private/Notification/Manager.php
+++ b/lib/private/Notification/Manager.php
@@ -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;
@@ -167,7 +159,7 @@ class Manager implements IManager {
* @since 8.2.0
*/
public function hasNotifiers(): bool {
- return !empty($this->notifiersClosures);
+ return !empty($this->notifiers) || !empty($this->notifierClasses);
}
/**