From 37ef522b057caf0a0058f6be87db39f7a4f1e174 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Thu, 2 Aug 2012 17:48:09 +0200
Subject: [PATCH] Quick fix for xml encoding arrays

---
 lib/api.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/api.php b/lib/api.php
index 155082fa0d..1ef4e090e3 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);
-- 
GitLab