Skip to content

Commit

Permalink
MDL-51399 report_outline: Hide blog column if blogs are disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhancox committed Sep 30, 2015
1 parent ee64a43 commit 9aed16a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report/outline/index.php
Expand Up @@ -93,7 +93,7 @@
$outlinetable->id = 'outlinetable';
$outlinetable->head = array($stractivity, $strviews);

if ($CFG->useblogassociations) {
if (!empty($CFG->enableblogs) && $CFG->useblogassociations) {
$outlinetable->head[] = $strrelatedblogentries;
}

Expand Down Expand Up @@ -222,7 +222,7 @@

$reportrow->cells[] = $numviewscell;

if ($CFG->useblogassociations) {
if (!empty($CFG->enableblogs) && $CFG->useblogassociations) {
require_once($CFG->dirroot.'/blog/lib.php');
$blogcell = new html_table_cell();
$blogcell->attributes['class'] = 'blog';
Expand Down

0 comments on commit 9aed16a

Please sign in to comment.