From: stronk7 <stronk7>
Date: Sun, 5 Sep 2004 09:23:23 +0000 (+0000)
Subject: Changed the way to determine the site course...
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a06f9887da7a89a6c51e3ea4b277753a453a5fd7;p=moodle.git

Changed the way to determine the site course...

Merged from MOODLE_14_STABLE
---

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 {