Merge pull request #6605 from owncloud/free_space_disabled
Return SPACE_UNKNOWN if disk_free_space is disabled
This commit is contained in:
commit
1ce45713bd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue