]> source.dussan.org Git - nextcloud-server.git/commitdiff
webdav: return SPACE_UNKNOWN if server do not support quota
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Thu, 16 Jan 2014 09:53:58 +0000 (10:53 +0100)
committerTigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Fri, 17 Jan 2014 10:45:26 +0000 (11:45 +0100)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
apps/files_external/lib/webdav.php

index 0f8034e57d950c5b48290adecee40cbe80c2d2e3..f6f4cb16e87461debde5f647a98c17a3f96af2e2 100644 (file)
@@ -224,7 +224,7 @@ class DAV extends \OC\Files\Storage\Common{
                        if (isset($response['{DAV:}quota-available-bytes'])) {
                                return (int)$response['{DAV:}quota-available-bytes'];
                        } else {
-                               return 0;
+                               return \OC\Files\SPACE_UNKNOWN;
                        }
                } catch(\Exception $e) {
                        return \OC\Files\SPACE_UNKNOWN;