[Pkg-owncloud-commits] [owncloud] 21/42: webdav: return SPACE_UNKNOWN if server do not support quota
David Prévot
taffit at moszumanska.debian.org
Wed Jan 22 21:21:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 3501007074a6000020ff7ad8d5d64b1ec2987628
Author: Tigran Mkrtchyan <tigran.mkrtchyan at desy.de>
Date: Thu Jan 16 10:53:58 2014 +0100
webdav: return SPACE_UNKNOWN if server do not support quota
Backport of a78dc117327a3109805d2a4cbfe28b9a5ca49a81 to stable6
---
apps/files_external/lib/webdav.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 9d56be8..4ec817f 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list