summaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre/objecttree.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connector/sabre/objecttree.php')
-rw-r--r--lib/connector/sabre/objecttree.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/objecttree.php b/lib/connector/sabre/objecttree.php
index c4ddcbecbb8..b298813a202 100644
--- a/lib/connector/sabre/objecttree.php
+++ b/lib/connector/sabre/objecttree.php
@@ -88,7 +88,7 @@ class ObjectTree extends \Sabre_DAV_ObjectTree {
} else {
Filesystem::mkdir($destination);
$dh = Filesystem::opendir($source);
- while ($subnode = readdir($dh)) {
+ while (($subnode = readdir($dh)) !== false) {
if ($subnode == '.' || $subnode == '..') continue;
$this->copy($source . '/' . $subnode, $destination . '/' . $subnode);