root/ip/trunk/ajax.php
| 159 | 170 | ||
|---|---|---|---|
151 | $username_row = false; | 151 | $username_row = false; |
152 | if (($mode == 'checkusername_pm') || (($mode == 'search_user') && !$has_wildcards)) | 152 | if (($mode == 'checkusername_pm') || (($mode == 'search_user') && !$has_wildcards)) |
153 | { | 153 | { |
154 | $sql = 'SELECT user_id | 154 | $sql = "SELECT user_id |
155 | FROM '. USERS_TABLE ." | 155 | FROM " . USERS_TABLE . " |
156 | WHERE username = '$username' | 156 | WHERE username = '" . $username . "' |
157 | AND user_id <> " . ANONYMOUS; | 157 | AND user_id <> " . ANONYMOUS; |
158 | $db->sql_return_on_error(true); | 158 | $db->sql_return_on_error(true); |
159 | $result = $db->sql_query($sql); | 159 | $result = $db->sql_query($sql); |
Download diff