summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-06 11:43:50 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-07 10:40:25 +0200
commit9b258929c6828432b23da859e60492ee470c4f48 (patch)
treeab478f48bd2ed088c254311e44a2c7a6972c5f1e /settings
parent2208313e02f0c1d5ae728115f81e040eaedaa0dc (diff)
downloadnextcloud-server-9b258929c6828432b23da859e60492ee470c4f48.tar.gz
nextcloud-server-9b258929c6828432b23da859e60492ee470c4f48.zip
allow to set quota to zero, issue #2696
Diffstat (limited to 'settings')
-rw-r--r--settings/ajax/setquota.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php
index cd8dc0e2796..8dcb7ddd424 100644
--- a/settings/ajax/setquota.php
+++ b/settings/ajax/setquota.php
@@ -22,11 +22,7 @@ if(($username == '' && !OC_User::isAdminUser(OC_User::getUser()))
$quota=$_POST["quota"];
if($quota!='none' and $quota!='default') {
$quota= OC_Helper::computerFileSize($quota);
- if($quota==0) {
- $quota='default';
- }else{
- $quota=OC_Helper::humanFileSize($quota);
- }
+ $quota=OC_Helper::humanFileSize($quota);
}
// Return Success story