Skip to content
Snippets Groups Projects
Commit e2f1c491 authored by Jean-François Bohémier's avatar Jean-François Bohémier Committed by Liam Morland
Browse files

Issue #3333298: Do not pass NULL to in_array() in PdftkPdfBackend

parent f473417d
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ class PdftkPdfBackend extends PdfBackendBase implements ContainerFactoryPluginIn ...@@ -142,7 +142,7 @@ class PdftkPdfBackend extends PdfBackendBase implements ContainerFactoryPluginIn
} }
// Separate the data key from the data value. // Separate the data key from the data value.
[$key, $value] = explode(':', $lineitem); [$key, $value] = explode(':', $lineitem);
if (in_array($key, array_keys($data_fields_map), NULL)) { if (in_array($key, array_keys($data_fields_map))) {
// Trim spaces. // Trim spaces.
$fields[$fieldindex][$data_fields_map[$key]] = trim($value); $fields[$fieldindex][$data_fields_map[$key]] = trim($value);
} }
......
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