diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index bad3973a1..f09795485 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -1086,7 +1086,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;