From: skodak Date: Mon, 10 Jul 2006 22:39:58 +0000 (+0000) Subject: Bug #5988 - Branch Tables in 1.6+ (Lesson Module); merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5109569b6973f71607332a22bfee8294998750c7;p=moodle.git Bug #5988 - Branch Tables in 1.6+ (Lesson Module); merged from MOODLE_16_STABLE --- diff --git a/mod/lesson/view.php b/mod/lesson/view.php index 01d17d1359..3f62919bde 100644 --- a/mod/lesson/view.php +++ b/mod/lesson/view.php @@ -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")