]> source.dussan.org Git - nextcloud-server.git/commitdiff
do not send null value when string is expected
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 25 Jul 2019 16:50:28 +0000 (18:50 +0200)
committerJulius Härtl <jus@bitgrid.net>
Fri, 2 Aug 2019 06:39:39 +0000 (08:39 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/files_external/lib/config.php

index 75ed59418d032e72b7386258d0bfe13a8ee5a6f1..cc0096d6dbf3282bcb1461648bc829dd876b848b 100644 (file)
@@ -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);
                }