From b367b152ad108313dc066a43e6e42a83989acc8d Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 14 Aug 2006 08:44:30 +0000 Subject: [PATCH] fixed warning during installation when creating admin account --- user/edit.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ){ -- 2.39.5
'.get_string('username').':