Permalink
Browse files

MDL-55874 report_particiption: fix invalid html

When messaging disabled.
  • Loading branch information...
danpoltawski committed Sep 7, 2016
1 parent 4846a96 commit be4e216e6b1a45fd5821df8e8de5e3237d49f028
Showing with 8 additions and 7 deletions.
  1. +8 −7 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 '<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();
@@ -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 be4e216

Please sign in to comment.