mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01:00
[feature/prune-users] Fix incorrect condition when deleting log entries.
The original commit incorrectly replaced reportee_id with user_id. Change it back to reportee_id. The comment was correct. PHPBB3-9622
This commit is contained in:
parent
953e829b52
commit
138d2e2a4c
@ -546,7 +546,7 @@ function user_delete($mode, $user_ids, $retain_username = true)
|
||||
|
||||
// Delete user log entries about this user
|
||||
$sql = 'DELETE FROM ' . LOG_TABLE . '
|
||||
WHERE ' . $user_id_sql; //reportee_id = ' . $user_id;
|
||||
WHERE ' . $db->sql_in_set('reportee_id', $user_ids);
|
||||
$db->sql_query($sql);
|
||||
|
||||
// Change user_id to anonymous for this users triggered events
|
||||
|
Loading…
x
Reference in New Issue
Block a user