summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>2014-01-16 10:53:58 +0100
committerTigran Mkrtchyan <tigran.mkrtchyan@desy.de>2014-01-17 11:45:26 +0100
commita78dc117327a3109805d2a4cbfe28b9a5ca49a81 (patch)
treec2b64014f001f325f757df3062e84d9b5839bd27 /apps
parent16033c81235e76af2900fdc8fd9340546301d45c (diff)
downloadnextcloud-server-a78dc117327a3109805d2a4cbfe28b9a5ca49a81.tar.gz
nextcloud-server-a78dc117327a3109805d2a4cbfe28b9a5ca49a81.zip
webdav: return SPACE_UNKNOWN if server do not support quota
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/webdav.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 0f8034e57d9..f6f4cb16e87 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -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;