From 17b57ec881e3f12789603f925296f7085583d29e Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Wed, 13 Feb 2013 11:02:22 +0800 Subject: [PATCH] MDL-35336 report (course overview): check the setting for enablestats before printing out the node for setting > site admin > reports --- report/courseoverview/settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/courseoverview/settings.php b/report/courseoverview/settings.php index e952338296a69..51676705b6178 100644 --- a/report/courseoverview/settings.php +++ b/report/courseoverview/settings.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die; -$ADMIN->add('reports', new admin_externalpage('reportcourseoverview', get_string('pluginname', 'report_courseoverview'), "$CFG->wwwroot/report/courseoverview/index.php",'report/courseoverview:view')); +$ADMIN->add('reports', new admin_externalpage('reportcourseoverview', get_string('pluginname', 'report_courseoverview'), "$CFG->wwwroot/report/courseoverview/index.php",'report/courseoverview:view', empty($CFG->enablestats))); // no report settings $settings = null;