diff --git a/xfdf.inc b/xfdf.inc index aa40513be008bd71f550e7064de718b19ac1e37b..0f6883586565fbc429a3190df1c29d8af64c7375 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($value ?: '')); } $ids_ele = $xfdf_ele->appendChild($doc->createElement('ids'));