diff options
-rw-r--r-- | apps/dav/lib/SystemTag/SystemTagPlugin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/lib/SystemTag/SystemTagPlugin.php b/apps/dav/lib/SystemTag/SystemTagPlugin.php index c5d200d578e..58f61c13232 100644 --- a/apps/dav/lib/SystemTag/SystemTagPlugin.php +++ b/apps/dav/lib/SystemTag/SystemTagPlugin.php @@ -303,9 +303,11 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin { $fileIds = [$node->getId()]; // note: pre-fetching only supported for depth <= 1 - $folderContent = $node->getNode()->getDirectoryListing(); + $folderContent = $node->getChildren(); foreach ($folderContent as $info) { - $fileIds[] = $info->getId(); + if ($info instanceof Node) { + $fileIds[] = $info->getId(); + } } $tags = $this->tagMapper->getTagIdsForObjects($fileIds, 'files'); |