allow to set quota to zero, issue #2696
This commit is contained in:
parent
2208313e02
commit
9b258929c6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue