mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-55345' of https://github.com/paulholden/moodle
This commit is contained in:
commit
a34625a17c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue