Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35336 report (course overview): check the setting for enablestats…

… before printing out the node for setting > site admin > reports
  • Loading branch information...
commit 9f2be81a8e0f67e1f0d1206be38ea2cfffb6aef9 1 parent 39239e2
@rwijaya rwijaya authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  report/courseoverview/settings.php
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.