Skip to content

Commit

Permalink
Fix null for str_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Pecina Ondřej committed Oct 14, 2022
1 parent 62c25e1 commit 0db2ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nostress/Koongo/Model/Data/Transformation/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,9 @@ protected function replaceVarsWithValues($string, $vars, $parent)
$value = $this->getValue($data, $parent);
}

$data = str_replace('"', '\"', $value);
$data = $value !== null ? str_replace('"', '\"', $value) : '';
}

return str_replace(array_keys($vars), array_values($vars), $string);
}

Expand Down

0 comments on commit 0db2ba7

Please sign in to comment.