From 29b04742db8e9f7eed5f709d6f2484afa91c9a36 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 fa40be12ffd..85bbbeb57d9 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -223,8 +223,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); }