aboutsummaryrefslogtreecommitdiffstats
path: root/admin/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/search.php')
-rw-r--r--admin/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/search.php b/admin/search.php
index e6eab6258..482d6afbc 100644
--- a/admin/search.php
+++ b/admin/search.php
@@ -73,7 +73,7 @@ if ( !empty($search_match) )
$sql = "SELECT username
FROM " . USERS_TABLE . "
WHERE username LIKE '" . str_replace("\'", "''", $username_search) . "'
- AND id <> ".ANONYMOUS."
+ AND id <> ".$conf['guest_id']."
ORDER BY username";
if ( !($result = pwg_query($sql)) )
{