MDL-56835 report_participation: remove unreachable if condition

This commit is contained in:
Mark Nelson
2019-07-09 09:15:16 +08:00
parent 4a8da9b005
commit 0b7e375d32
-9
View File
@@ -94,15 +94,6 @@ if (empty($logtable)) {
$onlyuselegacyreader = true;
}
// If no legacy and no logtable then don't proceed.
if (!$onlyuselegacyreader && empty($logtable)) {
echo $OUTPUT->box_start('generalbox', 'notice');
echo get_string('nologreaderenabled', 'report_participation');
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
die();
}
$modinfo = get_fast_modinfo($course);
// Print first controls.