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

Issue #3273143: Allow values of zero in XFDF

Fixes issue introduced in 8da26cad.
parent 353f2e66
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ class Xfdf { ...@@ -37,7 +37,7 @@ class Xfdf {
$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