2008-09-10, 09:23 AM
MyBB 1.4.1.
I have found possible bug while reviewing code - I did not test it however.
File: inc/tasks/usercleanup.php, code:
This line:
should be:
I have found possible bug while reviewing code - I did not test it however.
File: inc/tasks/usercleanup.php, code:
// Expire bans
$query = $db->simple_select("banned", "*", "lifted!=0 AND lifted<".TIME_NOW);
while($ban = $db->fetch_array($query))
{
$updated_user = array(
"usergroup" => $ban['oldgroup'],
"additionalgroups" => $ban['oldadditionalgroups'],
"displaygroup" => $ban['displaygroup']
);
$db->update_query("users", $updated_user, "uid='{$ban['uid']}'");
$db->delete_query("banned", "uid='{$ban['uid']}'");
}
This line:
"displaygroup" => $ban['displaygroup']
should be:
"displaygroup" => $ban['olddisplaygroup']
?