delete user by account_id, not account_lid, as there might be a group with same name

This commit is contained in:
Ralf Becker 2014-10-29 16:03:42 +00:00
parent 08ed554df5
commit eae15c06fd
2 changed files with 8 additions and 8 deletions

View File

@ -217,7 +217,7 @@ class admin_account
} }
if ($content['delete']) if ($content['delete'])
{ {
$cmd = new admin_cmd_delete_account(accounts::id2name($content['account_id']), $content['new_owner'], true); $cmd = new admin_cmd_delete_account($content['account_id'], $content['new_owner'], true);
$msg = $cmd->run(); $msg = $cmd->run();
if ($content['contact_id']) if ($content['contact_id'])
{ {

View File

@ -76,9 +76,9 @@ class admin_cmd_delete_account extends admin_cmd
if ($account_id < 0) if ($account_id < 0)
{ {
return lang("Group '%1' deleted.",$this->account)."\n\n"; return lang("Group '%1' deleted.",$account_lid)."\n\n";
} }
return lang("Account '%1' deleted.",$this->account)."\n\n"; return lang("Account '%1' deleted.",$account_lid)."\n\n";
} }
/** /**