mod/data MDL-24133 - footer called before header

This commit is contained in:
Dan Poltawski
2011-01-09 19:31:25 +00:00
parent 46f4c3932f
commit e594fc8d13
+1
View File
@@ -198,6 +198,7 @@ if ($datarecord = data_submitted() and confirm_sesskey()) {
/// Of course, you can't be stopped if you are an editting teacher! =)
if (data_atmaxentries($data) and !has_capability('mod/data:manageentries',$context)){
echo $OUTPUT->header();
echo $OUTPUT->notification(get_string('atmaxentry','data'));
echo $OUTPUT->footer();
exit;