mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-55345 user: correct userid when linking to iplookup from profile
This commit is contained in:
parent
ddd8dc0d1b
commit
546bc40c13
@ -422,7 +422,7 @@ function core_myprofile_navigation(core_user\output\myprofile\tree $tree, $user,
|
||||
// Last ip.
|
||||
if (has_capability('moodle/user:viewlastip', $usercontext) && !isset($hiddenfields['lastip'])) {
|
||||
if ($user->lastip) {
|
||||
$iplookupurl = new moodle_url('/iplookup/index.php', array('ip' => $user->lastip, 'user' => $USER->id));
|
||||
$iplookupurl = new moodle_url('/iplookup/index.php', array('ip' => $user->lastip, 'user' => $user->id));
|
||||
$ipstring = html_writer::link($iplookupurl, $user->lastip);
|
||||
} else {
|
||||
$ipstring = get_string("none");
|
||||
|
Loading…
x
Reference in New Issue
Block a user