diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-02 17:48:09 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-02 17:48:09 +0200 |
commit | 37ef522b057caf0a0058f6be87db39f7a4f1e174 (patch) | |
tree | 69966b0bab9cc0e2b4fca5d57bada6b437fbaec7 /lib/api.php | |
parent | 7952c6a31c27718428fddbca71c587506eb071d8 (diff) | |
download | nextcloud-server-37ef522b057caf0a0058f6be87db39f7a4f1e174.tar.gz nextcloud-server-37ef522b057caf0a0058f6be87db39f7a4f1e174.zip |
Quick fix for xml encoding arrays
Diffstat (limited to 'lib/api.php')
-rw-r--r-- | lib/api.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api.php b/lib/api.php index 155082fa0d0..1ef4e090e37 100644 --- a/lib/api.php +++ b/lib/api.php @@ -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); |