diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-15 19:56:15 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-15 19:56:15 +0200 |
commit | f06c08a63742de9adea4a146a4480b71ad254f20 (patch) | |
tree | 6607d1fc4d31c33190914fb373c9f6e0a526da63 /lib/fileproxy | |
parent | a9a424a51982396943e9c3353c0c36f289dd41ba (diff) | |
download | nextcloud-server-f06c08a63742de9adea4a146a4480b71ad254f20.tar.gz nextcloud-server-f06c08a63742de9adea4a146a4480b71ad254f20.zip |
cleanup oc_filecache, splitting it in several parts and using the new hasUpdated
Diffstat (limited to 'lib/fileproxy')
-rw-r--r-- | lib/fileproxy/quota.php | 4 |
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; |