Skip to content

Commit

Permalink
Merge pull request #48035 from nextcloud/backport/48013/stable30
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Sep 15, 2024
2 parents 80f8b7c + ad895bd commit 7c4f35c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/AppFramework/OCS/BaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ protected function toXML(array $array, \XMLWriter $writer): void {
$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);
}
}
}
Expand Down

0 comments on commit 7c4f35c

Please sign in to comment.