Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed the way to determine the site course...

  • Loading branch information...
commit b495ed2b4822ab1444dd324451855b36fd1118e6 1 parent 78cb48c
stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/blocklib.php
View
2  lib/blocklib.php
@@ -424,7 +424,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 {
Please sign in to comment.
Something went wrong with that request. Please try again.