summaryrefslogtreecommitdiffstats
path: root/settings/ajax/setquota.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-24 14:38:40 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-24 23:54:38 +0100
commit4230e217af16b400cf6eba26c2333ee4ea1f884c (patch)
tree96853f6557c32b3dcc3774ee3d7c96ab0e2d428e /settings/ajax/setquota.php
parent9f5bce81b037624099012038f1ebfeb94d3317fd (diff)
downloadnextcloud-server-4230e217af16b400cf6eba26c2333ee4ea1f884c.tar.gz
nextcloud-server-4230e217af16b400cf6eba26c2333ee4ea1f884c.zip
new config widget for user quota
Diffstat (limited to 'settings/ajax/setquota.php')
-rw-r--r--settings/ajax/setquota.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php
index 7bfc65102c1..e66513e54cc 100644
--- a/settings/ajax/setquota.php
+++ b/settings/ajax/setquota.php
@@ -11,10 +11,11 @@ $username = $_POST["username"];
$quota=$_POST["quota"];
if($quota!='none' and $quota!='default'){
$quota= OC_Helper::computerFileSize($quota);
- $quota=OC_Helper::humanFileSize($quota);
-}
-if($quota==0){
- $quota='default';
+ if($quota==0){
+ $quota='default';
+ }else{
+ $quota=OC_Helper::humanFileSize($quota);
+ }
}
// Return Success story