aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/AppInfo/Application.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php
index 620f8d7e126..4ed68e68840 100644
--- a/apps/dav/lib/AppInfo/Application.php
+++ b/apps/dav/lib/AppInfo/Application.php
@@ -225,10 +225,12 @@ class Application extends App implements IBootstrap {
});
$dispatcher->addListener('OC\AccountManager::userUpdated', function ($event) use ($container) {
- $user = $event->getSubject();
- /** @var SyncService $syncService */
- $syncService = $container->query(SyncService::class);
- $syncService->updateUser($user);
+ if ($event instanceof GenericEvent) {
+ $user = $event->getSubject();
+ /** @var SyncService $syncService */
+ $syncService = $container->query(SyncService::class);
+ $syncService->updateUser($user);
+ }
});