diff --git a/lib/api.php b/lib/api.php index 47318d4ae1..d4deac24c7 100644 --- a/lib/api.php +++ b/lib/api.php @@ -188,7 +188,6 @@ class OC_API { } private static function toXML($array, $writer) { - foreach($array as $k => $v) { if (substr($k, 0, 1) === '@') { $writer->writeAttribute(substr($k, 1), $v); @@ -196,7 +195,6 @@ class OC_API { } else if (is_numeric($k)) { $k = 'element'; } - if(is_array($v)) { $writer->startElement($k); self::toXML($v, $writer); @@ -204,9 +202,7 @@ class OC_API { } else { $writer->writeElement($k, $v); } - } - } }