Lorsque l'on supprime un compte, on met les eventuels sous-comptes à lui comme createur = 2000

This commit is contained in:
Benjamin Sonntag 2010-06-23 23:33:58 +00:00
parent 05c422eaa8
commit 0cbb58153d
1 changed files with 2 additions and 0 deletions

View File

@ -586,6 +586,8 @@ EOF;
($db->query("DELETE FROM local WHERE uid='$uid';"))) {
exec("/usr/lib/alternc/mem_del ".$tt["login"]);
$mem->unsu();
// If this user was (one day) an administrator one, he may have a list of his own accounts. Let's associate those accounts to nobody as a creator.
$db->query("UPDATE membres SET creator=2000 WHERE creator='$uid';");
return true;
} else {
$err->raise("admin",2);