Commit 25370fcb authored by Robin Appelman's avatar Robin Appelman
Browse files

Return SPACE_UNKNOWN if disk_free_space is disabled when getting the free space on a local storage

parent 095f9b8e
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment