diff --git a/course/report/stats/report.php b/course/report/stats/report.php index 32ee6d0e7f9..f3159a84d4e 100644 --- a/course/report/stats/report.php +++ b/course/report/stats/report.php @@ -11,14 +11,17 @@ } } - - echo '
'; if (!empty($report) && !empty($time)) { if ($report == STATS_REPORT_LOGINS && $course->id != SITEID) { - error("This type of report is only available for the site course"); + error('This type of report is only available for the site course', $adminroot); } $timesql = $param = stats_get_parameters($time,$report,$course->id,$mode); @@ -189,4 +197,4 @@ } } -?> +?> \ No newline at end of file