Skip to content

Commit

Permalink
MDL-55874 report_particiption: fix invalid html
Browse files Browse the repository at this point in the history
When messaging disabled.
  • Loading branch information
danpoltawski committed Sep 8, 2016
1 parent 5c33a0d commit d6713a4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions report/participation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -336,11 +335,13 @@

echo '<h2>'.get_string('counteditems', '', $a).'</h2>'."\n";

echo '<form action="'.$CFG->wwwroot.'/user/action_redir.php" method="post" id="studentsform">'."\n";
echo '<div>'."\n";
echo '<input type="hidden" name="id" value="'.$id.'" />'."\n";
echo '<input type="hidden" name="returnto" value="'. s($PAGE->url) .'" />'."\n";
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />'."\n";
if (!empty($CFG->messaging)) {
echo '<form action="'.$CFG->wwwroot.'/user/action_redir.php" method="post" id="studentsform">'."\n";
echo '<div>'."\n";
echo '<input type="hidden" name="id" value="'.$id.'" />'."\n";
echo '<input type="hidden" name="returnto" value="'. s($PAGE->url) .'" />'."\n";
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />'."\n";
}

foreach ($users as $u) {
$data = array();
Expand Down Expand Up @@ -385,10 +386,10 @@
echo '</div>';
echo '</div>'."\n";
echo '</form>'."\n";
echo '</div>'."\n";

$PAGE->requires->js_init_call('M.report_participation.init');
}
echo '</div>'."\n";
}

echo $OUTPUT->footer();

0 comments on commit d6713a4

Please sign in to comment.