diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-11-04 08:59:45 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-11-04 08:59:45 -0800 |
commit | 8ac3849a95bd6a733cce9134bab4bf38c5c0fadd (patch) | |
tree | 5fc42258625fa612348f701f0dd334ee476bdd4d /lib/fileproxy/quota.php | |
parent | 8c4c74b23f268b232e3f591ea564c018597ee82d (diff) | |
parent | 30d7993e0105a6c98cbf61d4253d08acf236aca7 (diff) | |
download | nextcloud-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.php | 6 |
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); |