From 7142bc1bbd5c0bf105e635ac88aecd61991f7fa1 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 13 Jun 2003 16:13:51 +0000 Subject: [PATCH] Check existence of course format --- course/view.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/course/view.php b/course/view.php index 1a771ef024..7cd1548afc 100644 --- a/course/view.php +++ b/course/view.php @@ -86,6 +86,10 @@ } } + if (!file_exists("format/$course->format.php")) { // Default format is weeks + $course->format = "weeks"; + } + require("format/$course->format.php"); // Include the actual course format print_footer(); -- 2.39.5