summaryrefslogtreecommitdiffstats
path: root/lib/fileproxy/quota.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-11-04 08:59:45 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2012-11-04 08:59:45 -0800
commit8ac3849a95bd6a733cce9134bab4bf38c5c0fadd (patch)
tree5fc42258625fa612348f701f0dd334ee476bdd4d /lib/fileproxy/quota.php
parent8c4c74b23f268b232e3f591ea564c018597ee82d (diff)
parent30d7993e0105a6c98cbf61d4253d08acf236aca7 (diff)
downloadnextcloud-server-8ac3849a95bd6a733cce9134bab4bf38c5c0fadd.tar.gz
nextcloud-server-8ac3849a95bd6a733cce9134bab4bf38c5c0fadd.zip
Merge pull request #238 from fmms/checkstyle04
Checkstyle fixes
Diffstat (limited to 'lib/fileproxy/quota.php')
-rw-r--r--lib/fileproxy/quota.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php
index 54bda5d864e..81376fb6fca 100644
--- a/lib/fileproxy/quota.php
+++ b/lib/fileproxy/quota.php
@@ -38,9 +38,9 @@ class OC_FileProxy_Quota extends OC_FileProxy{
if(in_array($user, $this->userQuota)) {
return $this->userQuota[$user];
}
- $userQuota=OC_Preferences::getValue($user,'files','quota','default');
+ $userQuota=OC_Preferences::getValue($user,'files','quota', 'default');
if($userQuota=='default') {
- $userQuota=OC_AppConfig::getValue('files','default_quota','none');
+ $userQuota=OC_AppConfig::getValue('files','default_quota', 'none');
}
if($userQuota=='none') {
$this->userQuota[$user]=0;
@@ -93,7 +93,7 @@ class OC_FileProxy_Quota extends OC_FileProxy{
}
public function preCopy($path1, $path2) {
- if(!self::$rootView){
+ if(!self::$rootView) {
self::$rootView = new OC_FilesystemView('');
}
return (self::$rootView->filesize($path1)<$this->getFreeSpace($path2) or $this->getFreeSpace($path2)==0);