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:
95b7be7
)
MDL-61042 mod_lesson: Initialise pageid variable
author
Jun Pataleta
<jun@moodle.com>
Fri, 15 Dec 2017 04:36:16 +0000
(17:36 +1300)
committer
Jun Pataleta
<jun@moodle.com>
Fri, 15 Dec 2017 04:36:16 +0000
(17:36 +1300)
mod/lesson/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/lesson/locallib.php
b/mod/lesson/locallib.php
index
d6fcf50
..
69e313a
100644
(file)
--- a/
mod/lesson/locallib.php
+++ b/
mod/lesson/locallib.php
@@
-1055,6
+1055,7
@@
function lesson_get_user_detailed_report_data(lesson $lesson, $userid, $attempt)
$lesson->update_effective_access($userid);
}
+ $pageid = 0;
$lessonpages = $lesson->load_all_pages();
foreach ($lessonpages as $lessonpage) {
if ($lessonpage->prevpageid == 0) {