equal
deleted
inserted
replaced
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 ); |