mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 11:24:35 +02:00
[ticket/10729] Update message_edit_user when user being deleted
PHPBB3-10729
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user