Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed ($course) to ($this->course) in if condition to allow course …

…to be checked
  • Loading branch information...
commit a1931e61d5a875e65496e1c54b7e6d3afa3a3cda 1 parent 3c4a629
selliott authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  blocks/admin/block_admin.php
View
3  blocks/admin/block_admin.php
@@ -23,7 +23,7 @@ function get_content() {
$this->content->icons = array();
$this->content->footer = '';
- if (empty($course)) {
+ if (empty($this->course)) {
$this->content = '';
} else if ($this->course->category == 0) {
$this->load_content_for_site();
@@ -68,6 +68,7 @@ function load_content_for_site() {
function load_content_for_course() {
global $CFG, $USER;
+
require_once($CFG->dirroot.'/mod/forum/lib.php');
if (isguest()) {
Please sign in to comment.
Something went wrong with that request. Please try again.