Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-06-15 21:56:15 +0400
committerRobin Appelman <icewind@owncloud.com>2012-06-15 21:56:15 +0400
commitf06c08a63742de9adea4a146a4480b71ad254f20 (patch)
tree6607d1fc4d31c33190914fb373c9f6e0a526da63 /lib/fileproxy
parenta9a424a51982396943e9c3353c0c36f289dd41ba (diff)
cleanup oc_filecache, splitting it in several parts and using the new hasUpdated
Diffstat (limited to 'lib/fileproxy')
-rw-r--r--lib/fileproxy/quota.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php
index 9e4c2d0643e..f061d48219b 100644
--- a/lib/fileproxy/quota.php
+++ b/lib/fileproxy/quota.php
@@ -54,8 +54,8 @@ class OC_FileProxy_Quota extends OC_FileProxy{
* @return int
*/
private function getFreeSpace(){
- $rootInfo=OC_FileCache::get('');
- $usedSpace=$rootInfo['size'];
+ $rootInfo=OC_FileCache_Cached::get('');
+ $usedSpace=isset($rootInfo['size'])?$rootInfo['size']:0;
$totalSpace=$this->getQuota();
if($totalSpace==0){
return 0;