MDL-57464 mod_lesson: fix notice with sub-clusters.
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user