Skip to content
Snippets Groups Projects
Commit 3d36f909 authored by Liam Morland's avatar Liam Morland Committed by Liam Morland
Browse files

Issue #3273143: Allow values of zero in XFDF

Fixes issue introduced in 8da26cad.
parent 7a3d4f0b
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') { ...@@ -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((string) $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