Bug fix: properly export boolean attributes to XML (a value of false was creating an empty XML tag)

SVN:1.2.1[2153]
This commit is contained in:
Denis Flaven
2012-08-23 14:41:16 +00:00
parent 5edf6ee43f
commit 9755af9b7b

View File

@@ -1085,6 +1085,11 @@ class AttributeBoolean extends AttributeInteger
if ($value) return 1;
return 0;
}
public function GetAsXML($sValue, $oHostObject = null)
{
return $sValue ? '1' : '0';
}
}
/**