Fix #1526
Met a jour le quota utilisateur quand on coche "reset quota" lorsqu'on l'édite
This commit is contained in:
parent
7110788a98
commit
4e0f0eebf7
|
@ -600,7 +600,10 @@ EOF;
|
||||||
|
|
||||||
if (($db->query("UPDATE local SET nom='$nom', prenom='$prenom' WHERE uid='$uid';"))
|
if (($db->query("UPDATE local SET nom='$nom', prenom='$prenom' WHERE uid='$uid';"))
|
||||||
&&($db->query("UPDATE membres SET mail='$mail', canpass='$canpass', enabled='$enabled', `type`='$type', notes='$notes' $ssq WHERE uid='$uid';"))){
|
&&($db->query("UPDATE membres SET mail='$mail', canpass='$canpass', enabled='$enabled', `type`='$type', notes='$notes' $ssq WHERE uid='$uid';"))){
|
||||||
if($reset_quotas == "on") $quota->addquotas();
|
if($reset_quotas == "on") {
|
||||||
|
$quota->addquotas();
|
||||||
|
$quota->synchronise_user_profile();
|
||||||
|
}
|
||||||
$this->renew_update($uid, $duration);
|
$this->renew_update($uid, $duration);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue