allow to set quota to zero, issue #2696

This commit is contained in:
Björn Schießle 2013-05-06 11:43:50 +02:00
parent 2208313e02
commit 9b258929c6
1 changed files with 1 additions and 5 deletions

View File

@ -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