From b4fd9e2ed2efc8446c6a267f448ac6d10ef2faa4 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 13 Jul 2012 10:45:08 +1200 Subject: [PATCH] Don't just return the first element in a dead property - there might be multiple! --- inc/DAVResource.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/DAVResource.php b/inc/DAVResource.php index 68d5273e..83aa5387 100644 --- a/inc/DAVResource.php +++ b/inc/DAVResource.php @@ -655,8 +655,7 @@ EOQRY; xml_parser_free($xml_parser); $position = 0; $xmltree = BuildXMLTree( $xml_tags, $position); - $content = $xmltree->GetContent(); - return $content[0]; + return $xmltree->GetContent(); } /**