Skip to content
Browse files

MDL-30765 fix invalid context variable

  • Loading branch information...
1 parent acb3bf8 commit ebad6e2f6f4619fc954fcddd9a65fbacf6b5f4e4 @skodak skodak committed Dec 16, 2011
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;
}

0 comments on commit ebad6e2

Please sign in to comment.
Something went wrong with that request. Please try again.