Permalink
Browse files

Merge branch 'w51_MDL-30765_m22_context' of git://github.com/skodak/m…

…oodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents e7af814 + ebad6e2 commit 1f3933bee6010d5b2f8a2e75423435bef59fd928 Sam Hemelryk committed Dec 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 1f3933b

Please sign in to comment.