mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Small things
#15068 #15060 git-svn-id: file:///svn/phpbb/trunk@8233 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
fe57a7983b
commit
808385967c
2 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,7 @@ class acp_users
|
|||
$user_id = request_var('u', 0);
|
||||
$action = request_var('action', '');
|
||||
|
||||
$submit = (isset($_POST['update'])) ? true : false;
|
||||
$submit = (isset($_POST['update']) && !isset($_POST['cancel'])) ? true : false;
|
||||
|
||||
$form_name = 'acp_users';
|
||||
add_form_key($form_name);
|
||||
|
|
|
@ -370,6 +370,11 @@ function user_delete($mode, $user_id, $post_username = false)
|
|||
// Remove reports
|
||||
$db->sql_query('DELETE FROM ' . REPORTS_TABLE . ' WHERE user_id = ' . $user_id);
|
||||
|
||||
if ($user_row['user_avatar'] && $user_row['user_avatar_type'] == AVATAR_UPLOAD)
|
||||
{
|
||||
avatar_delete('user', $user_row);
|
||||
}
|
||||
|
||||
switch ($mode)
|
||||
{
|
||||
case 'retain':
|
||||
|
|
Loading…
Add table
Reference in a new issue