mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-30765 fix invalid context variable
This commit is contained in:
parent
f89a83b87b
commit
58a9e8f3de
@ -42,7 +42,7 @@ add_to_log($course->id, 'course', 'report outline', "report/outline/index.php?id
|
||||
$showlastaccess = true;
|
||||
$hiddenfields = explode(',', $CFG->hiddenuserfields);
|
||||
|
||||
if (array_search('lastaccess', $hiddenfields) and !has_capability('moodle/user:viewhiddendetails', $coursecontext)) {
|
||||
if (array_search('lastaccess', $hiddenfields) and !has_capability('moodle/user:viewhiddendetails', $context)) {
|
||||
$showlastaccess = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user