summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/local.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-01-02 13:19:10 +0100
committerRobin Appelman <icewind@owncloud.com>2014-01-02 13:19:10 +0100
commit25370fcb8235d2129cab0f8a5843c4784b3673d0 (patch)
tree898d1a6e9322adac390c106920f9e4c344415f90 /lib/private/files/storage/local.php
parent095f9b8ee047f4bf7b51d5adfcbb74c4d5c713d5 (diff)
downloadnextcloud-server-25370fcb8235d2129cab0f8a5843c4784b3673d0.tar.gz
nextcloud-server-25370fcb8235d2129cab0f8a5843c4784b3673d0.zip
Return SPACE_UNKNOWN if disk_free_space is disabled when getting the free space on a local storage
Diffstat (limited to 'lib/private/files/storage/local.php')
-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;