mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
Bug fix: creating a new DOM Node containing the string "0" resulted in an empty node (no DOMText).
SVN:2.3[4464]
This commit is contained in:
@@ -2070,7 +2070,7 @@ class MFDocument extends \Combodo\iTop\DesignDocument
|
||||
function createElement($sName, $value = null, $namespaceURI = null)
|
||||
{
|
||||
$oElement = $this->importNode(new MFElement($sName, null, $namespaceURI));
|
||||
if (!empty($value))
|
||||
if (($value !== '') && ($value !== null))
|
||||
{
|
||||
$oElement->appendChild(new DOMText($value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user