do not send null value when string is expected

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2019-07-25 18:50:28 +02:00 committed by Backportbot
parent 9e5994a210
commit 29b04742db
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}