aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/lib/DAV/Tree.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-10-30 18:11:49 -0700
committerzotlabs <mike@macgirvin.com>2018-10-30 18:11:49 -0700
commit70c55da1df69d90dcbeb5a78c994b23a8456bfc9 (patch)
tree86d39069b02ecabe4ed091514e5076a98abda43a /vendor/sabre/dav/lib/DAV/Tree.php
parent623aa7ea48149ca7c2bc556931f25befdf49e58a (diff)
parentf9ab7647dd660adb37464614616cb8484c500de4 (diff)
downloadvolse-hubzilla-70c55da1df69d90dcbeb5a78c994b23a8456bfc9.tar.gz
volse-hubzilla-70c55da1df69d90dcbeb5a78c994b23a8456bfc9.tar.bz2
volse-hubzilla-70c55da1df69d90dcbeb5a78c994b23a8456bfc9.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into xdev_merge
Diffstat (limited to 'vendor/sabre/dav/lib/DAV/Tree.php')
-rw-r--r--vendor/sabre/dav/lib/DAV/Tree.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/sabre/dav/lib/DAV/Tree.php b/vendor/sabre/dav/lib/DAV/Tree.php
index 5d2792503..7c04f0915 100644
--- a/vendor/sabre/dav/lib/DAV/Tree.php
+++ b/vendor/sabre/dav/lib/DAV/Tree.php
@@ -298,7 +298,9 @@ class Tree {
*/
protected function copyNode(INode $source, ICollection $destinationParent, $destinationName = null) {
- if (!$destinationName) $destinationName = $source->getName();
+ if ((string)$destinationName === '') {
+ $destinationName = $source->getName();
+ }
if ($source instanceof IFile) {