diff --git a/sections/user/takemoderate.php b/sections/user/takemoderate.php index 638c7c16..d7538ee0 100644 --- a/sections/user/takemoderate.php +++ b/sections/user/takemoderate.php @@ -212,6 +212,10 @@ UPDATE users_history_passkeys SET ChangerIP = '' WHERE UserID = $UserID"); + $DB->query(" + UPDATE users_sessions + SET IP = '127.0.0.1' + WHERE UserID = $UserID"); $EditSummary[] = 'IP history cleared'; } diff --git a/sections/userhistory/ip_history.php b/sections/userhistory/ip_history.php index 20d53d58..da1c3aa5 100644 --- a/sections/userhistory/ip_history.php +++ b/sections/userhistory/ip_history.php @@ -121,6 +121,7 @@ function UnBan(ip, id, elemID) { LIMIT $Limit"); } + if (isset($QueryID)) { $DB->query('SELECT FOUND_ROWS()'); list($NumResults) = $DB->next_record(); @@ -172,13 +173,15 @@ function UnBan(ip, id, elemID) {

IP address history for

- +