[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:
Oleg Pudeyev 2012-03-25 20:59:37 -04:00
parent 953e829b52
commit 138d2e2a4c

View file

@ -546,7 +546,7 @@ function user_delete($mode, $user_ids, $retain_username = true)
// 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 ' . $user_id_sql; //reportee_id = ' . $user_id; WHERE ' . $db->sql_in_set('reportee_id', $user_ids);
$db->sql_query($sql); $db->sql_query($sql);
// Change user_id to anonymous for this users triggered events // Change user_id to anonymous for this users triggered events