Skip to content
Snippets Groups Projects
Commit a6350130 authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Fix prefix/suffix syntax error.

parent c3d02f58
No related branches found
No related tags found
No related merge requests found
...@@ -396,9 +396,9 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU ...@@ -396,9 +396,9 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU
$fields[$obj->pdf_key] = $str; $fields[$obj->pdf_key] = $str;
} }
} }
// Apply prefix and suffix, if applicable // Apply prefix and suffix, if applicable
if ($fields[$obj->pdf_key]) { if (isset($fields[$obj->pdf_key]) && $fields[$obj->pdf_key]) {
if ($obj->prefix) { if ($obj->prefix) {
$fields[$obj->pdf_key] = $obj->prefix . $fields[$obj->pdf_key]; $fields[$obj->pdf_key] = $obj->prefix . $fields[$obj->pdf_key];
} }
......
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