Cleanup of the admin interface - especially the user management

Bugs fixed, duplicate code removed, plus you can now add new users.

Aaah much better.  :-)
This commit is contained in:
martin
2002-08-08 14:17:55 +00:00
parent e5a57e853a
commit a3447e1053
10 changed files with 191 additions and 198 deletions
+1 -1
View File
@@ -993,7 +993,7 @@ function isguest($userid=0) {
return ($USER->username == "guest");
}
return record_exists_sql("SELECT * FROM user WHERE user='$userid' AND username = 'guest' ");
return record_exists_sql("SELECT * FROM user WHERE id='$userid' AND username = 'guest' ");
}
function isediting($courseid, $user=NULL) {