2015-06-15, 08:44 AM
This function should return uid too.
There you go ->
Line 226 and onwards:
There you go ->
Line 226 and onwards:
$query = $db->simple_select("users", "uid, username", "username LIKE '".$db->escape_string_like($mybb->input['query'])."%'", $query_options);
if($limit == 1)
{
$user = $db->fetch_array($query);
$user['username'] = htmlspecialchars_uni($user['username']);
$data = array('id' => $user['username'], 'text' => $user['username'], 'uid' => $user['uid']);
}
else
{
$data = array();
while($user = $db->fetch_array($query))
{
$user['username'] = htmlspecialchars_uni($user['username']);
$data[] = array('id' => $user['username'], 'text' => $user['username'], 'uid' => $user['uid']);
}
}