summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2012-02-14 16:54:44 +0000
committerChristian Schneider2012-02-14 16:54:44 +0000
commit4d945c4a8ced3835064592f35ce2d68083e51b09 (patch)
treefeb456b073862491d91238d8b1f16fb9d221e322
parent23a718fbf4f6833932f09590440303397a30747f (diff)
downloaditools-4d945c4a8ced3835064592f35ce2d68083e51b09.tar.gz
itools-4d945c4a8ced3835064592f35ce2d68083e51b09.tar.bz2
itools-4d945c4a8ced3835064592f35ce2d68083e51b09.zip
Simplify it_xml::__toString: Always return a string
-rw-r--r--it_xml.class2
1 files changed, 1 insertions, 1 deletions
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;
}
}