diff --git a/user/edit.html b/user/edit.html index d2b29a970e2..f83296a5e75 100644 --- a/user/edit.html +++ b/user/edit.html @@ -21,8 +21,8 @@ id == $USER->id) and ($USER->id == $user->id)); + $theadmin = get_admin(); // returns false during install + $adminself = (!empty($theadmin) and ($theadmin->id == $USER->id) and ($USER->id == $user->id)); echo ''; echo ''; if ($adminself || is_internal_auth($user->auth) ){
'.get_string('username').':