Skip to content

Commit

Permalink
Fix caching of root-level nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Oct 27, 2015
1 parent 69c1b5c commit 6223d06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/DAV/Tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ function getChildren($path) {

$node = $this->getNodeForPath($path);
$children = $node->getChildren();
$basePath = trim($path, '/') . '/';
$basePath = trim($path, '/');
if ($basePath !== '') $basePath.='/';

foreach ($children as $child) {

$this->cache[$basePath . $child->getName()] = $child;
Expand Down

0 comments on commit 6223d06

Please sign in to comment.