mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Quick fix for xml encoding arrays
This commit is contained in:
parent
7952c6a31c
commit
37ef522b05
1 changed files with 3 additions and 0 deletions
|
|
@ -132,6 +132,9 @@ class OC_API {
|
|||
|
||||
private static function toXML($array, $writer){
|
||||
foreach($array as $k => $v) {
|
||||
if (is_numeric($k)) {
|
||||
$k = 'element';
|
||||
}
|
||||
if (is_array($v)) {
|
||||
$writer->startElement($k);
|
||||
self::toXML($v, $writer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue