diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-07-25 18:50:28 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-08-02 08:39:39 +0200 |
commit | d577076457d2e07345224f5030d7a177de1238f5 (patch) | |
tree | 2b7066ba321d73aeead74b83aaabf3831e9f95e7 /apps/files_external/lib/config.php | |
parent | 30c44e1d24eadddd0eb6b4bc090933e2ee4c95a9 (diff) | |
download | nextcloud-server-d577076457d2e07345224f5030d7a177de1238f5.tar.gz nextcloud-server-d577076457d2e07345224f5030d7a177de1238f5.zip |
do not send null value when string is expected
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/files_external/lib/config.php')
-rw-r--r-- | apps/files_external/lib/config.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 75ed59418d0..cc0096d6dbf 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -222,8 +222,8 @@ class OC_Mount_Config { /** @var IConfigHandler[] $handlers */ $handlers = $backendService->getConfigHandlers(); foreach ($handlers as $handler) { - if ($handler instanceof UserContext) { - $handler->setUser($user); + if ($handler instanceof UserContext && $userId !== null) { + $handler->setUserId($userId); } $input = $handler->handle($input); } |