There was an error while loading. Please reload this page.
1 parent d3031b8 commit 75273a6Copy full SHA for 75273a6
1 file changed
apps/dav/lib/Connector/Sabre/Node.php
@@ -28,6 +28,7 @@
28
use OCP\PreConditionNotMetException;
29
use OCP\Server;
30
use OCP\Share\Exceptions\ShareNotFound;
31
+use OCP\Share\IAttributes;
32
use OCP\Share\IManager;
33
use RuntimeException;
34
use Sabre\DAV\Exception;
@@ -297,7 +298,7 @@ public function getShareAttributes(): array {
297
298
$attributes = [];
299
if ($storage->instanceOfStorage(ISharedStorage::class)) {
300
$attributes = $storage->getShare()->getAttributes();
- if ($attributes === null) {
301
+ if (!$attributes instanceof IAttributes) {
302
return [];
303
}
304
0 commit comments