Skip to content
Snippets Groups Projects
Commit 9091c505 authored by Liam Morland's avatar Liam Morland
Browse files

Refactor: Use list() in fillpdf_execute_parse()

parent 7484fd71
No related branches found
No related tags found
No related merge requests found
......@@ -1761,9 +1761,9 @@ function fillpdf_execute_parse($method, $fillpdf, $mode = 'url') {
continue;
}
// Separate the data key from the data value.
$linedata = explode(':', $lineitem);
if (in_array($linedata[0], array_keys($data_fields_map))) {
$fields[$fieldindex][$data_fields_map[$linedata[0]]] = trim($linedata[1]);
list($key, $value) = explode(':', $lineitem);
if (in_array($key, array_keys($data_fields_map))) {
$fields[$fieldindex][$data_fields_map[$key]] = trim($value);
}
}
break;
......
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