Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e8335f
)
MDL-33340 completion: Incorrect logic in hidden field check
author
Ankit Agarwal
<ankit@moodle.com>
Mon, 25 Jun 2012 06:10:42 +0000
(14:10 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Mon, 7 Jan 2013 02:37:38 +0000
(10:37 +0800)
Credit to Jody Steele
report/outline/index.php
patch
|
blob
|
blame
|
history
diff --git
a/report/outline/index.php
b/report/outline/index.php
index
c7abae3
..
7c82e66
100644
(file)
--- a/
report/outline/index.php
+++ b/
report/outline/index.php
@@
-42,7
+42,7
@@
add_to_log($course->id, 'course', 'report outline', "report/outline/index.php?id
$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;
}