From d6713a430e3854e3dcf4fc40f74342902e7f042d Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 7 Sep 2016 12:38:08 +0100 Subject: [PATCH] MDL-55874 report_particiption: fix invalid html When messaging disabled. --- report/participation/index.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/report/participation/index.php b/report/participation/index.php index 07f2b99763469..77f75957b0f1e 100644 --- a/report/participation/index.php +++ b/report/participation/index.php @@ -184,7 +184,6 @@ } $table->define_baseurl($baseurl); - $table->set_attribute('cellpadding','5'); $table->set_attribute('class', 'generaltable generalbox reporttable'); $table->sortable(true,'lastname','ASC'); @@ -336,11 +335,13 @@ echo '

'.get_string('counteditems', '', $a).'

'."\n"; - echo '
'."\n"; - echo '
'."\n"; - echo ''."\n"; - echo ''."\n"; - echo ''."\n"; + if (!empty($CFG->messaging)) { + echo ''."\n"; + echo '
'."\n"; + echo ''."\n"; + echo ''."\n"; + echo ''."\n"; + } foreach ($users as $u) { $data = array(); @@ -385,10 +386,10 @@ echo '
'; echo '
'."\n"; echo '
'."\n"; - echo ''."\n"; $PAGE->requires->js_init_call('M.report_participation.init'); } + echo ''."\n"; } echo $OUTPUT->footer();