MDL-57464 mod_lesson: fix notice with sub-clusters.

This commit is contained in:
Adrian Greeve
2016-12-23 11:12:27 +08:00
parent a09a9879e5
commit 502397dcbc
+2 -1
View File
@@ -58,7 +58,8 @@ class lesson_page_type_endofbranch extends lesson_page {
public function redirect_to_first_answer($canmanage) {
global $USER, $PAGE;
$answer = array_shift($this->get_answers());
$answers = $this->get_answers();
$answer = array_shift($answers);
$jumpto = $answer->jumpto;
if ($jumpto == LESSON_RANDOMBRANCH) {