From: mark-nielsen Date: Tue, 19 Sep 2006 04:49:45 +0000 (+0000) Subject: Got ahead of myself, fixed by bug fix X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4bea0828a2970a7389d8d749cc737eaec131c92f;p=moodle.git Got ahead of myself, fixed by bug fix --- diff --git a/mod/lesson/action/addpage.php b/mod/lesson/action/addpage.php index 6874e042b0..26d33678ba 100644 --- a/mod/lesson/action/addpage.php +++ b/mod/lesson/action/addpage.php @@ -27,7 +27,7 @@ } if (!optional_param('firstpage', 0, PARAM_INT)) { $linkadd = ""; - $apageid = get_field("lesson_pages", "id", "lessonid", $lesson->id, "prevpageid", 0)) { + $apageid = get_field("lesson_pages", "id", "lessonid", $lesson->id, "prevpageid", 0); while (true) { if ($apageid) {