MDL-35336 report (course overview): check the setting for enablestats before printing out the node for setting > site admin > reports

This commit is contained in:
Rossiani Wijaya
2013-02-18 10:22:51 +08:00
parent ec0fef3294
commit 2102aee45c
+1 -1
View File
@@ -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;