summaryrefslogtreecommitdiffstats
path: root/core/vendor/davclient.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/vendor/davclient.js')
-rw-r--r--core/vendor/davclient.js/lib/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vendor/davclient.js/lib/client.js b/core/vendor/davclient.js/lib/client.js
index 93678f09248..39c1b0f3e93 100644
--- a/core/vendor/davclient.js/lib/client.js
+++ b/core/vendor/davclient.js/lib/client.js
@@ -198,7 +198,7 @@ dav.Client.prototype = {
var propNode = propIterator.iterateNext();
while(propNode) {
var content = propNode.textContent;
- if (!content && propNode.hasChildNodes()) {
+ if (propNode.childNodes && propNode.childNodes.length > 0 && propNode.childNodes[0].nodeType === 1) {
content = propNode.childNodes;
}