From 4d945c4a8ced3835064592f35ce2d68083e51b09 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 14 Feb 2012 16:54:44 +0000 Subject: Simplify it_xml::__toString: Always return a string --- it_xml.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_xml.class b/it_xml.class index d472183..4c9cb1c 100644 --- a/it_xml.class +++ b/it_xml.class @@ -373,7 +373,7 @@ function set($vals, $parentprefix = null) function __toString() { - return strlen($this->val) ? $this->val : ""; + return (string)$this->val; } } -- cgit v1.2.3