From 138d2e2a4cbfbac0b6bc04d81b618fac62a69fb9 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Sun, 25 Mar 2012 20:59:37 -0400 Subject: [PATCH] [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 --- phpBB/includes/functions_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 09a6394323..ff6b60633a 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -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