#115 Prevent PDF being polluted with HTML at the EOF
This commit is contained in:
parent
1b47ae9eea
commit
1daf83fb2c
1
edit.php
1
edit.php
|
@ -210,6 +210,7 @@ if ($data = $mform->get_data()) {
|
|||
// Check if we want to preview this custom certificate.
|
||||
if (!empty($data->previewbtn)) {
|
||||
$template->generate_pdf(true);
|
||||
exit();
|
||||
}
|
||||
|
||||
// Redirect to the editing page to show form with recent updates.
|
||||
|
|
Loading…
Reference in a new issue