From 3d36f909f14950937e2849bc0baa769b30604a4a Mon Sep 17 00:00:00 2001 From: Liam Morland <lkmorlan@uwaterloo.ca> Date: Wed, 13 Sep 2023 23:06:50 -0400 Subject: [PATCH] Issue #3273143: Allow values of zero in XFDF Fixes issue introduced in 8da26ca. --- xfdf.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfdf.inc b/xfdf.inc index 9f0a620..53d57ff 100644 --- a/xfdf.inc +++ b/xfdf.inc @@ -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((string) $value)); } $ids_ele = $xfdf_ele->appendChild($doc->createElement('ids')); -- GitLab