diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-11-27 17:09:55 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-11-27 17:16:58 +0100 |
commit | ea283c0248135e6a9eac6ce1119f21e1ade0387c (patch) | |
tree | 156449c2edba230ce82c6cf08397ce6ff57b6e46 /apps/dav/lib/HookManager.php | |
parent | c32cc4a194532f531786c14b99edaee7fc872105 (diff) | |
download | nextcloud-server-ea283c0248135e6a9eac6ce1119f21e1ade0387c.tar.gz nextcloud-server-ea283c0248135e6a9eac6ce1119f21e1ade0387c.zip |
be careful with mixed return values even if it may look unsuspicious…
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav/lib/HookManager.php')
-rw-r--r-- | apps/dav/lib/HookManager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/HookManager.php b/apps/dav/lib/HookManager.php index b1bd039c65e..27b6525be47 100644 --- a/apps/dav/lib/HookManager.php +++ b/apps/dav/lib/HookManager.php @@ -101,7 +101,9 @@ class HookManager { public function postCreateUser($params) { $user = $this->userManager->get($params['uid']); - $this->syncService->updateUser($user); + if ($user instanceof IUser) { + $this->syncService->updateUser($user); + } } public function preDeleteUser($params) { |