]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5988 - Branch Tables in 1.6+ (Lesson Module); merged from MOODLE_16_STABLE
authorskodak <skodak>
Mon, 10 Jul 2006 22:39:58 +0000 (22:39 +0000)
committerskodak <skodak>
Mon, 10 Jul 2006 22:39:58 +0000 (22:39 +0000)
mod/lesson/view.php

index 01d17d135976717e93a3285a22d792a82137cbf5..3f62919bdeae8d9cb157b5ae6513494b4b509637 100644 (file)
                                     $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&amp;action=navigation&amp;pageid=$answer->jumpto");// REMOVED: , get_string("endofbranch", "lesson")