plugins/SpecialPageFuncs.php
changeset 1090 6c84fb196026
parent 1081 745200a9cc2a
child 1137 9f928ce05b6b
equal deleted inserted replaced
1089:16a1e8626dd9 1090:6c84fb196026
   638           $min_id = ( isset($_GET['allow_anon']) && $_GET['allow_anon'] == '1' ) ? '1' : '2';
   638           $min_id = ( isset($_GET['allow_anon']) && $_GET['allow_anon'] == '1' ) ? '1' : '2';
   639           $q = $db->sql_query('SELECT username FROM ' . table_prefix . "users WHERE " . ENANO_SQLFUNC_LOWERCASE . "(username) LIKE '$search' AND user_id >= $min_id");
   639           $q = $db->sql_query('SELECT username FROM ' . table_prefix . "users WHERE " . ENANO_SQLFUNC_LOWERCASE . "(username) LIKE '$search' AND user_id >= $min_id");
   640           if ( !$q )
   640           if ( !$q )
   641             $db->die_json();
   641             $db->die_json();
   642           
   642           
   643           while ( $row = $db->fetchrow() )
   643           while ( $row = $db->fetchrow($q) )
   644           {
   644           {
   645             $key = array(
   645             $key = array(
   646               'name' => $row['username'],
   646               'name' => $row['username'],
   647               'name_highlight' => highlight_term($_GET['userinput'], $row['username'], '<b>', '</b>')
   647               'name_highlight' => highlight_term($_GET['userinput'], $row['username'], '<b>', '</b>')
   648             );
   648             );