Skip to content

Commit

Permalink
Merge branch 'MDL-53234-support-email-MOODLE_29_STABLE' of https://gi…
Browse files Browse the repository at this point in the history
…thub.com/brendanheywood/moodle into MOODLE_29_STABLE
  • Loading branch information
andrewnicols committed Mar 15, 2016
2 parents 627cfe2 + 2e735a1 commit 3648a75
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions admin/settings/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@

// "supportcontact" settingpage
$temp = new admin_settingpage('supportcontact', new lang_string('supportcontact','admin'));
if (isloggedin()) {
global $USER;
$primaryadminemail = $USER->email;
$primaryadminname = fullname($USER, true);

$primaryadmin = get_admin();
if ($primaryadmin) {
$primaryadminemail = $primaryadmin->email;
$primaryadminname = fullname($primaryadmin, true);
} else {
// no defaults during installation - admin user must be created first
$primaryadminemail = NULL;
Expand Down

0 comments on commit 3648a75

Please sign in to comment.