Skip to content
Snippets Groups Projects
Commit 31a3da73 authored by git's avatar git Committed by Liam Morland
Browse files

Issue #3012350 by miksha: Fix "page not found" when deleting forms

parent 1effdd11
No related branches found
No related tags found
No related merge requests found
...@@ -581,7 +581,7 @@ function fillpdf_form_edit_submit($form, &$form_state) { ...@@ -581,7 +581,7 @@ function fillpdf_form_edit_submit($form, &$form_state) {
*/ */
function fillpdf_form_delete_confirm($form, &$form_state, $pdf_form) { function fillpdf_form_delete_confirm($form, &$form_state, $pdf_form) {
if (is_numeric(arg(3))) { if (is_numeric(arg(3))) {
$pdf_form = fillpdf_load(arg(3, FALSE, FALSE)); $pdf_form = fillpdf_load(arg(3), FALSE, FALSE);
} }
if (!$pdf_form) { if (!$pdf_form) {
drupal_not_found(); drupal_not_found();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment