From: skodak Date: Mon, 14 Aug 2006 08:44:30 +0000 (+0000) Subject: fixed warning during installation when creating admin account X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b367b152ad108313dc066a43e6e42a83989acc8d;p=moodle.git fixed warning during installation when creating admin account --- diff --git a/user/edit.html b/user/edit.html index d2b29a970e..f83296a5e7 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').':