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

Issue #3273143: Handle empty values in create_xfdf()

parent 566cca8e
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ function create_xfdf($file, array $info, $enc = 'UTF-8') {
$field_ele->setAttribute('name', $name);
$value_ele = $field_ele->appendChild($doc->createElement('value'));
$value_ele->appendChild($doc->createTextNode($value));
$value_ele->appendChild($doc->createTextNode($value ?: ''));
}
$ids_ele = $xfdf_ele->appendChild($doc->createElement('ids'));
......
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