Commit 879f456e authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix small booboo in my previous patch to add 'log in as' link to the user profile page.

parent 15cfe974
......@@ -331,7 +331,7 @@ if ($loggedinid != $userid) {
}
if ($id != $USER->get('id') && is_null($USER->get('parentuser'))) {
if ($userid != $USER->get('id') && is_null($USER->get('parentuser'))) {
$loginas = get_string('loginasuser', 'admin', $user->username);
} else {
$loginas = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment