MyBB Community Forums

Full Version: Updating Ban Changes Admin to BAN UID
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
 $update_array = array(
 'gid' => $mybb->get_input('usergroup', 1),
 'admin' => (int)$user['uid'],
 'dateline' => TIME_NOW,
 'bantime' => $db->escape_string($mybb->get_input('liftafter')),
 'lifted' => $db->escape_string($lifted),
 'reason' => $db->escape_string($banreason)

 $db->update_query('banned', $update_array, "uid='{$user['uid']}'");

'admin' => (int)$user['uid'],

should be just removed

or? This would change who banned him from the original however.
'admin' => (int)$mybb->user['uid'],
His has already been reported and fixed for 1.8.1.