Met a jour le quota utilisateur quand on coche "reset quota" lorsqu'on l'édite
This commit is contained in:
Alan Garcia 2013-09-12 09:07:09 +00:00
parent 7110788a98
commit 4e0f0eebf7
1 changed files with 4 additions and 1 deletions

View File

@ -600,7 +600,10 @@ EOF;
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';"))){
if($reset_quotas == "on") $quota->addquotas();
if($reset_quotas == "on") {
$quota->addquotas();
$quota->synchronise_user_profile();
}
$this->renew_update($uid, $duration);
return true;
}