]> source.dussan.org Git - nextcloud-server.git/commitdiff
Return SPACE_UNKNOWN if disk_free_space is disabled when getting the free space on...
authorRobin Appelman <icewind@owncloud.com>
Thu, 2 Jan 2014 12:19:10 +0000 (13:19 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 2 Jan 2014 12:19:10 +0000 (13:19 +0100)
lib/private/files/storage/local.php

index 02e8df4af4e944da1e96466bd1a26bb19c8cf214..db3c6bfca3a7b843826aa4c08ef1bc58afad0b7b 100644 (file)
@@ -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;