Merge pull request #6810 from kofemann/for-upstream

webdav: return SPACE_UNKNOWN if server do not support quota
This commit is contained in:
Vincent Petry 2014-01-17 04:09:53 -08:00
commit 21d32d8a9e
1 changed files with 1 additions and 1 deletions

View File

@ -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;