Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30765 fix invalid context variable

  • Loading branch information...
commit ebad6e2f6f4619fc954fcddd9a65fbacf6b5f4e4 1 parent acb3bf8
@skodak skodak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  report/outline/index.php
View
2  report/outline/index.php
@@ -42,7 +42,7 @@
$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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.