From d577076457d2e07345224f5030d7a177de1238f5 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 25 Jul 2019 18:50:28 +0200 Subject: [PATCH] do not send null value when string is expected Signed-off-by: Arthur Schiwon --- apps/files_external/lib/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 75ed59418d..cc0096d6db 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); }