]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix detection of Notifiers
authorJoas Schilling <coding@schilljs.com>
Tue, 30 Apr 2019 10:08:10 +0000 (12:08 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 15 Jul 2019 13:12:43 +0000 (15:12 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Notification/Manager.php

index df54265a7adde4f3f955bf58bafef15175e7c0b6..2ed7aa7c176dae8b66742692c2e39109cbbdb76b 100644 (file)
@@ -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);
        }
 
        /**