2009-01-08, 11:44 PM
1. Go into the Mod-CP -> Banning -> *User* -> Edit Ban.
2. Click on the link "Lift ban". You get this message:
In modcp.php you can find this line:
2. Click on the link "Lift ban". You get this message:
You have selected an invalid ban.
In modcp.php you can find this line:
$lift_link = "<div class=\"float_right\"><a href=\"modcp.php?action=liftban&uid={$user['uid']}&my_post_key={$mybb->post_code}\">{$lang->lift_ban}</a></div>";
$user['uid'] is empty because uid is not a part of the query before:$query = $db->query("
SELECT b.*, u.username
FROM ".TABLE_PREFIX."banned b
LEFT JOIN ".TABLE_PREFIX."users u ON (b.uid=u.uid)
WHERE b.uid='{$mybb->input['uid']}'
");