MyBB Community Forums
[Duplicate] Updating Ban Changes Admin to BAN UID - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Rejected (https://community.mybb.com/forum-184.html)
+----- Thread: [Duplicate] Updating Ban Changes Admin to BAN UID (/thread-161712.html)



Updating Ban Changes Admin to BAN UID - Zacky - 2014-10-23

if($existing_ban)
 {
 $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'],



RE: Updating Ban Changes Admin to BAN UID - Euan T - 2014-10-23

His has already been reported and fixed for 1.8.1. https://github.com/mybb/mybb/issues/1501