From: moodler Date: Mon, 13 Jan 2003 12:16:46 +0000 (+0000) Subject: More fixes for robustness X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=13770d0c36a89907f4540ccf3dd2f0b947c1782b;p=moodle.git More fixes for robustness --- diff --git a/course/edit.php b/course/edit.php index 2634a981cc..737de6dc49 100644 --- a/course/edit.php +++ b/course/edit.php @@ -75,7 +75,7 @@ /// Otherwise fill and print the form. if (empty($form)) { - if ($course) { + if (!empty($course)) { $form = $course; } else { $form->startdate = time() + 3600 * 24; @@ -87,6 +87,7 @@ $form->students = get_string("defaultcoursestudents"); $form->summary = get_string("defaultcoursesummary"); $form->format = "weeks"; + $form->guest = 0; $form->numsections = 10; $form->newsitems = 5; $form->showrecent = 1; diff --git a/course/lib.php b/course/lib.php index fe047a7740..8452c91d4d 100644 --- a/course/lib.php +++ b/course/lib.php @@ -747,10 +747,12 @@ function print_course_categories($categories, $selected="none", $width=180) { } } $catdata[] = "wwwroot/course/index.php?category=all\">".get_string("fulllistofcourses").""; + $caticon[] = ""; if (isset($USER->id)) { $catdata[] = "wwwroot/course/index.php?category=my\">".get_string("mycourses").""; + $caticon[] = ""; } - print_side_block(get_string("categories"), "", $catdata, $caticon, $showall.$mine, $width); + print_side_block(get_string("categories"), "", $catdata, $caticon, "", $width); } }