From a6350130170fbec45918e33b0d19f34eb04714d9 Mon Sep 17 00:00:00 2001 From: Kevin Kaland <kevin@wizonesolutions.com> Date: Wed, 24 Jul 2013 04:56:59 +0200 Subject: [PATCH] Fix prefix/suffix syntax error. --- fillpdf.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fillpdf.module b/fillpdf.module index 34f19cf..3137d54 100644 --- a/fillpdf.module +++ b/fillpdf.module @@ -396,9 +396,9 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU $fields[$obj->pdf_key] = $str; } } - + // Apply prefix and suffix, if applicable - if ($fields[$obj->pdf_key]) { + if (isset($fields[$obj->pdf_key]) && $fields[$obj->pdf_key]) { if ($obj->prefix) { $fields[$obj->pdf_key] = $obj->prefix . $fields[$obj->pdf_key]; } -- GitLab