Permalink
Browse files

MDL-30765 fix invalid context variable

  • Loading branch information...
skodak authored and Sam Hemelryk committed Dec 16, 2011
1 parent 16e8cca commit 4cc0361e10ecf95b4dff8e905c7ac6efd0a2337b
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/report/outline/index.php
@@ -23,7 +23,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;
}

0 comments on commit 4cc0361

Please sign in to comment.