diff --git a/LSS/Array2XML.php b/LSS/Array2XML.php index 99e0659..a9ad148 100644 --- a/LSS/Array2XML.php +++ b/LSS/Array2XML.php @@ -170,7 +170,7 @@ private static function &convert($node_name, $arr = array()) { // after we are done with all the keys in the array (if it is one) // we check if it has any text value, if yes, append it. - if (!is_array($arr)) { + if (!is_array($arr) && $arr) { $node->appendChild($xml->createTextNode(self::bool2str($arr))); }