Permalink
Browse files

Rmove guest from list of possible teachers

  • Loading branch information...
martin
martin committed Aug 2, 2002
1 parent f781b79 commit fc5c407eef02f9a15f5a8e43d6ab5193748452b7
Showing with 4 additions and 2 deletions.
  1. +4 −2 admin/teacher.php
View
@@ -119,9 +119,11 @@
$users = get_records_sql("SELECT * from user WHERE confirmed = 1
AND (firstname LIKE '%$search%' OR
lastname LIKE '%$search%' OR
- email LIKE '%$search%')");
+ email LIKE '%$search%')
+ AND username <> 'guest'");
} else {
- $users = get_records("user", "confirmed", "1");
+ $users = get_records_sql("SELECT * from user WHERE confirmed = 1
+ AND username <> 'guest'");
}

0 comments on commit fc5c407

Please sign in to comment.