Merge pull request #6605 from owncloud/free_space_disabled

Return SPACE_UNKNOWN if disk_free_space is disabled
This commit is contained in:
Thomas Müller 2014-01-02 08:19:52 -08:00
commit 1ce45713bd
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ if (\OC_Util::runningOnWindows()) {
public function free_space($path) {
$space = @disk_free_space($this->datadir . $path);
if ($space === false) {
if ($space === false || is_null($space)) {
return \OC\Files\SPACE_UNKNOWN;
}
return $space;