mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
test and corrections
This commit is contained in:
@@ -45,7 +45,7 @@ class FormOutput extends AbstractFormIO
|
||||
{
|
||||
if (is_null($this->oConverter)) {
|
||||
$sType = $this->GetDataType();
|
||||
return new $sType($oData);
|
||||
return $oData !== null ? new $sType($oData) : null;
|
||||
}
|
||||
|
||||
return $this->oConverter->Convert($oData);
|
||||
|
||||
Reference in New Issue
Block a user