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

SVN:trunk[2154]
This commit is contained in:
Denis Flaven
2012-08-23 14:42:34 +00:00
parent 083c3d8613
commit 5726b2cd5c

View File

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