projects
/
moodle-mod_attendance.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38925ef
)
Fix bug with userdisplay check.
author
Dan Marsden
<dan@danmarsden.com>
Fri, 23 Jun 2017 03:27:17 +0000
(15:27 +1200)
committer
Dan Marsden
<dan@danmarsden.com>
Fri, 23 Jun 2017 03:27:17 +0000
(15:27 +1200)
renderables.php
patch
|
blob
|
history
diff --git
a/renderables.php
b/renderables.php
index
dc3ced6
..
abeb212
100644
(file)
--- a/
renderables.php
+++ b/
renderables.php
@@
-491,7
+491,7
@@
class attendance_user_data implements renderable {
// Check to make sure the user can view this cm.
$modinfo = get_fast_modinfo($ca->courseid);
if (!$modinfo->instances['attendance'][$ca->attid]->uservisible) {
- unset($this->courseatts[$atid]);
+ unset($this->course
s
atts[$atid]);
continue;
} else {
$this->coursesatts[$atid]->cmid = $modinfo->instances['attendance'][$ca->attid]->get_course_module_record()->id;