Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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 17b57ec881e3f12789603f925296f7085583d29e 1 parent 2975c34
@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.