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

Avoid occasional invalid array index error.

parent 7e51c298
No related branches found
No related tags found
No related merge requests found
......@@ -822,8 +822,10 @@ function _fillpdf_replacements_to_array($replacements) {
foreach ($lines as $replacement) {
if (!empty($replacement)) {
$split = explode('|', $replacement);
$return[$split[0]] = preg_replace('|<br />|', '
if (count($split) == 2) { // Sometimes it isn't; don't know why.
$return[$split[0]] = preg_replace('|<br />|', '
', $split[1]);
}
}
}
return $return;
......
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