summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Xml/TXmlDocument.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Xml/TXmlDocument.php b/framework/Xml/TXmlDocument.php
index 7d506852..96340baf 100644
--- a/framework/Xml/TXmlDocument.php
+++ b/framework/Xml/TXmlDocument.php
@@ -139,7 +139,7 @@ class TXmlElement extends TComponent
*/
public function setAttribute($name,$value)
{
- $this->getAttributes()->add($name,$value);
+ $this->getAttributes()->add($name,TPropertyValue::ensureString($value));
}
/**