Skip to content
Snippets Groups Projects
Commit 1ce45713 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #6605 from owncloud/free_space_disabled

Return SPACE_UNKNOWN if disk_free_space is disabled
parents 27d7fff5 25370fcb
No related branches found
No related tags found
No related merge requests found
...@@ -256,7 +256,7 @@ if (\OC_Util::runningOnWindows()) { ...@@ -256,7 +256,7 @@ if (\OC_Util::runningOnWindows()) {
public function free_space($path) { public function free_space($path) {
$space = @disk_free_space($this->datadir . $path); $space = @disk_free_space($this->datadir . $path);
if ($space === false) { if ($space === false || is_null($space)) {
return \OC\Files\SPACE_UNKNOWN; return \OC\Files\SPACE_UNKNOWN;
} }
return $space; return $space;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment