Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33340 completion: Incorrect logic in hidden field check

Credit to Jody Steele
  • Loading branch information...
commit 986095771bf2d21f503af1cda4c89388682aee26 1 parent dd89f61
Ankit Agarwal ankitagarwal authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  report/outline/index.php
2  report/outline/index.php
View
@@ -42,7 +42,7 @@
$showlastaccess = true;
$hiddenfields = explode(',', $CFG->hiddenuserfields);
-if (array_search('lastaccess', $hiddenfields) and !has_capability('moodle/user:viewhiddendetails', $context)) {
+if (array_search('lastaccess', $hiddenfields) !== false and !has_capability('moodle/user:viewhiddendetails', $context)) {
$showlastaccess = false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.