Merge pull request #6810 from kofemann/for-upstream
webdav: return SPACE_UNKNOWN if server do not support quota
This commit is contained in:
commit
21d32d8a9e
|
@ -224,7 +224,7 @@ class DAV extends \OC\Files\Storage\Common{
|
||||||
if (isset($response['{DAV:}quota-available-bytes'])) {
|
if (isset($response['{DAV:}quota-available-bytes'])) {
|
||||||
return (int)$response['{DAV:}quota-available-bytes'];
|
return (int)$response['{DAV:}quota-available-bytes'];
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return \OC\Files\SPACE_UNKNOWN;
|
||||||
}
|
}
|
||||||
} catch(\Exception $e) {
|
} catch(\Exception $e) {
|
||||||
return \OC\Files\SPACE_UNKNOWN;
|
return \OC\Files\SPACE_UNKNOWN;
|
||||||
|
|
Loading…
Reference in New Issue