Internal - MFFactory: fixed GetDelta when there is no change at all

SVN:trunk[3792]
This commit is contained in:
Romain Quetiez
2015-09-28 12:49:54 +00:00
parent 7105b7a5fa
commit ef57f870ac

View File

@@ -1085,7 +1085,10 @@ EOF
{
foreach ($aAttributes as $sAttribute => $value)
{
$oDelta->documentElement->setAttribute($sAttribute, $value);
if ($oDelta->documentElement) // yes, this may happen when still no change has been performed (and a module has been selected for installation)
{
$oDelta->documentElement->setAttribute($sAttribute, $value);
}
}
}
return $oDelta;