mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
[ticket/10729] Update message_edit_user when user being deleted
PHPBB3-10729
This commit is contained in:
parent
53f597b6d0
commit
da6b378e64
1 changed files with 6 additions and 0 deletions
|
@ -502,6 +502,12 @@ function user_delete($mode, $user_id, $post_username = false)
|
||||||
WHERE post_edit_user = ' . $user_id;
|
WHERE post_edit_user = ' . $user_id;
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
|
// Change user_id to anonymous for pms edited by this user
|
||||||
|
$sql = 'UPDATE ' . PRIVMSGS_TABLE . '
|
||||||
|
SET message_edit_user = ' . ANONYMOUS . '
|
||||||
|
WHERE message_edit_user = ' . $user_id;
|
||||||
|
$db->sql_query($sql);
|
||||||
|
|
||||||
// Delete user log entries about this user
|
// Delete user log entries about this user
|
||||||
$sql = 'DELETE FROM ' . LOG_TABLE . '
|
$sql = 'DELETE FROM ' . LOG_TABLE . '
|
||||||
WHERE reportee_id = ' . $user_id;
|
WHERE reportee_id = ' . $user_id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue