diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index db13fa60e..facb7ee10 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -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)); }