mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 11:23:06 +02:00
lesson MDL-23907 fixed - $DB->get_records first selected field should be unique.
This commit is contained in:
parent
7feb91ad90
commit
802aa02ea8
@ -516,7 +516,7 @@ class mod_lesson_renderer extends plugin_renderer_base {
|
||||
}
|
||||
|
||||
// collect all of the branch tables viewed
|
||||
if ($viewedbranches = $DB->get_records("lesson_branch", array ("lessonid"=>$lesson->id, "userid"=>$USER->id, "retry"=>$ntries), 'timeseen DESC', 'pageid, id')) {
|
||||
if ($viewedbranches = $DB->get_records("lesson_branch", array ("lessonid"=>$lesson->id, "userid"=>$USER->id, "retry"=>$ntries), 'timeseen DESC', 'id, pageid')) {
|
||||
$viewedpageids = array_merge($viewedpageids, array_keys($viewedbranches));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user