summaryrefslogtreecommitdiffstats
path: root/lib/api.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-02 17:48:09 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-02 17:48:09 +0200
commit37ef522b057caf0a0058f6be87db39f7a4f1e174 (patch)
tree69966b0bab9cc0e2b4fca5d57bada6b437fbaec7 /lib/api.php
parent7952c6a31c27718428fddbca71c587506eb071d8 (diff)
downloadnextcloud-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.php3
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);