Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-04-06 16:46:38 +0300
committerRobin Appelman <robin@icewind.nl>2022-04-06 19:08:13 +0300
commit5e69f98c16b551327edec2788156b699ee1e38d5 (patch)
treefe77185f85b95d4a874886135fdc2b31277e2c28 /apps
parentae7205f550d12d713b0b079eb0889c8f3bafb42b (diff)
sh
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/SharesPlugin.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
index bbfbfc04a72..57c91e05a8c 100644
--- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
@@ -201,18 +201,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin {
!is_null($propFind->getStatus(self::SHAREES_PROPERTYNAME))
)
) {
- try {
- $folderNode = $sabreNode->getNode();
- } catch (NotFoundException $e) {
- // If the folder can't be properly found just return
- return;
- }
-
- if (!($folderNode instanceof Folder)) {
- // Safety check
- return;
- }
-
+ $folderNode = $sabreNode->getNode();
$this->cachedFolders[] = $sabreNode->getPath();
$childShares = $this->getSharesFolder($folderNode);
foreach ($childShares as $id => $shares) {