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

Issue #3273143: Handle empty values in create_xfdf()

parent 21e4098b
No related branches found
Tags 7.x-1.18-rc2
No related merge requests found
...@@ -33,7 +33,7 @@ function create_xfdf($file, array $info, $enc = 'UTF-8') { ...@@ -33,7 +33,7 @@ function create_xfdf($file, array $info, $enc = 'UTF-8') {
$field_ele->setAttribute('name', $name); $field_ele->setAttribute('name', $name);
$value_ele = $field_ele->appendChild($doc->createElement('value')); $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')); $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