]> git.mjollnir.org Git - moodle.git/commitdiff
Changed the way to determine the site course...
authorstronk7 <stronk7>
Sun, 5 Sep 2004 09:23:23 +0000 (09:23 +0000)
committerstronk7 <stronk7>
Sun, 5 Sep 2004 09:23:23 +0000 (09:23 +0000)
Merged from MOODLE_14_STABLE

lib/blocklib.php

index 29c55e0a8c003aaa40f0bab1011ab5c0a04b700c..31a551bfa96e1a73dde5654ae8b4b4b9a9465626 100644 (file)
@@ -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 {