From fb57f15170f412c75386966bbf1098026d9da14e Mon Sep 17 00:00:00 2001 From: Andrew Hancox Date: Wed, 30 Sep 2015 16:58:32 +0100 Subject: [PATCH] MDL-51399 report_outline: Hide blog column if blogs are disabled. --- report/outline/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report/outline/index.php b/report/outline/index.php index 07021ea0bc3..3ce928c7bc8 100644 --- a/report/outline/index.php +++ b/report/outline/index.php @@ -93,7 +93,7 @@ $outlinetable->cellpadding = 5; $outlinetable->id = 'outlinetable'; $outlinetable->head = array($stractivity, $strviews); -if ($CFG->useblogassociations) { +if (!empty($CFG->enableblogs) && $CFG->useblogassociations) { $outlinetable->head[] = $strrelatedblogentries; } @@ -222,7 +222,7 @@ foreach ($modinfo->sections as $sectionnum=>$section) { $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';