Permalink
Browse files

Primary admin is now the lowest-numbered entry in user_admins, rather…

… than

the admin with the lowest userid.  This makes it easier to change the
primary admin.
  • Loading branch information...
1 parent de861fe commit 427fdf6669961a1d86238173f54938c62535fdd6 moodler committed Mar 24, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/datalib.php
View
@@ -1037,11 +1037,11 @@ function get_admins() {
global $CFG;
- return get_records_sql("SELECT u.*
+ return get_records_sql("SELECT u.*, a.id as adminid
FROM {$CFG->prefix}user u,
{$CFG->prefix}user_admins a
WHERE a.userid = u.id
- ORDER BY u.id ASC");
+ ORDER BY a.id ASC");
}
/**

0 comments on commit 427fdf6

Please sign in to comment.