From 23a718fbf4f6833932f09590440303397a30747f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 14 Feb 2012 15:51:34 +0000 Subject: return "" for undefined nodes --- it_xml.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_xml.class') diff --git a/it_xml.class b/it_xml.class index 4e34c81..d472183 100644 --- a/it_xml.class +++ b/it_xml.class @@ -373,7 +373,7 @@ function set($vals, $parentprefix = null) function __toString() { - return $this->val; + return strlen($this->val) ? $this->val : ""; } } -- cgit v1.2.3