]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix error when browsing the dav root 4733/head
authorRobin Appelman <robin@icewind.nl>
Mon, 8 May 2017 12:34:36 +0000 (14:34 +0200)
committerRobin Appelman <robin@icewind.nl>
Mon, 8 May 2017 12:34:36 +0000 (14:34 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/dav/lib/Connector/Sabre/FilesPlugin.php

index 4c426dd1052f6d3c602c5e71ffdd1818ea2d7694..30eeaaacf6322f0a46e3a203153e9f88d32acbab 100644 (file)
@@ -343,6 +343,9 @@ class FilesPlugin extends ServerPlugin {
                        $propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
                                return $node->getSize();
                        });
+                       $propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
+                               return $node->getFileInfo()->getMountPoint()->getMountType();
+                       });
                }
 
                if ($node instanceof \OCA\DAV\Connector\Sabre\Node) {
@@ -383,10 +386,6 @@ class FilesPlugin extends ServerPlugin {
                                return $node->getSize();
                        });
                }
-
-               $propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
-                       return $node->getFileInfo()->getMountPoint()->getMountType();
-               });
        }
 
        /**