mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 09:37:29 -04:00
Merge pull request #48035 from nextcloud/backport/48013/stable30
This commit is contained in:
commit
7c4f35c981
1 changed files with 3 additions and 1 deletions
|
|
@ -143,8 +143,10 @@ abstract class BaseResponse extends Response {
|
|||
$writer->startElement($k);
|
||||
$this->toXML($v->jsonSerialize(), $writer);
|
||||
$writer->endElement();
|
||||
} elseif ($v === null) {
|
||||
$writer->writeElement($k);
|
||||
} else {
|
||||
$writer->writeElement($k, $v);
|
||||
$writer->writeElement($k, (string)$v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue