Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-06 13:43:50 +0400
committerBjörn Schießle <schiessle@owncloud.com>2013-05-06 13:43:50 +0400
commit7ff26af1072d3ed923ee890ce4c1adc5c5800295 (patch)
tree0b42a3c538ad068c3ba8b82073b1617b3a3ad539 /settings
parent44fedae69f1794f956f4d177e78b0f9def7a919e (diff)
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