From a06f9887da7a89a6c51e3ea4b277753a453a5fd7 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 5 Sep 2004 09:23:23 +0000 Subject: [PATCH] Changed the way to determine the site course... Merged from MOODLE_14_STABLE --- lib/blocklib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index 29c55e0a8c..31a551bfa9 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -419,7 +419,7 @@ function block_print_blocks_admin(&$course, $missingblocks) { $menu[$block->id] = $blockobject->get_title(); } - if($course->id == 1) { + if(!$course->category) { $target = 'index.php'; } else { -- 2.39.5