Bug #5988 - Branch Tables in 1.6+ (Lesson Module)

This commit is contained in:
skodak
2006-07-10 22:38:45 +00:00
parent 4287b1f51b
commit d6b7aa9c25
+3 -3
View File
@@ -600,15 +600,15 @@
$answer->jumpto = $page->nextpageid;
}
}
} else if ($answer->jumpto = LESSON_NEXTPAGE) {
} else if ($answer->jumpto == LESSON_NEXTPAGE) {
if ($page->nextpageid == 0) {
$answer->jumpto = LESSON_EOL;
} else {
$answer->jumpto = $page->nextpageid;
}
} else if ($answer->jumpto = 0) {
} else if ($answer->jumpto == 0) {
$answer->jumpto = $page->id;
} else if ($answer->jumpto = LESSON_PREVIOUSPAGE) {
} else if ($answer->jumpto == LESSON_PREVIOUSPAGE) {
$answer->jumpto = $page->prevpageid;
}
redirect("view.php?id=$cm->id&action=navigation&pageid=$answer->jumpto");// REMOVED: , get_string("endofbranch", "lesson")