summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-07-25 18:50:28 +0200
committerBackportbot <backportbot-noreply@rullzer.com>2019-08-02 12:08:22 +0000
commit29b04742db8e9f7eed5f709d6f2484afa91c9a36 (patch)
tree526eba9e028c2b2bb3eb92f5fcc95082a7f3f4e1 /apps
parent9e5994a2106796106d91aee5dc98dd108bf28381 (diff)
downloadnextcloud-server-29b04742db8e9f7eed5f709d6f2484afa91c9a36.tar.gz
nextcloud-server-29b04742db8e9f7eed5f709d6f2484afa91c9a36.zip
do not send null value when string is expected
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/config.php4
1 files 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);
}