Skip to content
Permalink
Browse files

Merge branch 'w50_MDL-30625_m23_adminorder' of git://github.com/skoda…

…k/moodle
  • Loading branch information...
stronk7 committed Dec 9, 2011
2 parents 675e402 + b8d13be commit d6b380a36401318f84ff26659eb0115b88fd569a
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/datalib.php
@@ -62,6 +62,10 @@ function get_admin() {
return clone($mainadmin);
}
if (empty($CFG->siteadmins)) { // Should not happen on an ordinary site
return false;
}
foreach (explode(',', $CFG->siteadmins) as $id) {
if ($user = $DB->get_record('user', array('id'=>$id, 'deleted'=>0))) {
$mainadmin = $user;

0 comments on commit d6b380a

Please sign in to comment.
You can’t perform that action at this time.