diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php index f14929642d..eee03d93db 100644 --- a/lib/private/notification/manager.php +++ b/lib/private/notification/manager.php @@ -71,7 +71,7 @@ class Manager implements IManager { } foreach ($this->appsClosures as $closure) { - $app = $closure; + $app = $closure(); if (!($app instanceof IApp)) { throw new \InvalidArgumentException('The given notification app does not implement the IApp interface'); } @@ -90,7 +90,7 @@ class Manager implements IManager { } foreach ($this->notifiersClosures as $closure) { - $notifier = $closure; + $notifier = $closure(); if (!($notifier instanceof INotifier)) { throw new \InvalidArgumentException('The given notification app does not implement the INotifier interface'); } diff --git a/lib/private/notification/notification.php b/lib/private/notification/notification.php index 17246ddef3..f5171f150c 100644 --- a/lib/private/notification/notification.php +++ b/lib/private/notification/notification.php @@ -393,7 +393,7 @@ class Notification implements INotification { if (!$action->isValidParsed()) { throw new \InvalidArgumentException('The given parsed action is invalid'); } - $this->actions[] = $action; + $this->actionsParsed[] = $action; return $this; }