Permalink
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...
1 parent ec0fef3 commit 2102aee45ce0f2b79649ebcd7f8d474f787ace65 Rossiani Wijaya committed Feb 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 2102aee

Please sign in to comment.