Browse Source

Merge pull request #6605 from owncloud/free_space_disabled

Return SPACE_UNKNOWN if disk_free_space is disabled
remotes/origin/ldap_group_count
Thomas Müller 12 years ago
parent
commit
1ce45713bd
  1. 2
      lib/private/files/storage/local.php

2
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;

Loading…
Cancel
Save