summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-02 08:19:52 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-02 08:19:52 -0800
commit1ce45713bd5e4928b2df1e1c88b8ca1dc98f1551 (patch)
tree58af663a1da735890523db91b7d576134c882968 /lib
parent27d7fff580454f34277baefa3f9fbd9542b458e5 (diff)
parent25370fcb8235d2129cab0f8a5843c4784b3673d0 (diff)
downloadnextcloud-server-1ce45713bd5e4928b2df1e1c88b8ca1dc98f1551.tar.gz
nextcloud-server-1ce45713bd5e4928b2df1e1c88b8ca1dc98f1551.zip
Merge pull request #6605 from owncloud/free_space_disabled
Return SPACE_UNKNOWN if disk_free_space is disabled
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/local.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index 02e8df4af4e..db3c6bfca3a 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -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;