mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2013 Fix regression when installing from scratch
Error was "Call to a member function UpdateFromParams() on null"
Regression introduced by 15d3201a
This commit is contained in:
@@ -565,15 +565,16 @@ class ApplicationInstaller
|
||||
if (($sEnvironment == 'production') && !$bIsAlreadyInMaintenanceMode)
|
||||
{
|
||||
$sConfigFilePath = utils::GetConfigFilePath($sEnvironment);
|
||||
if (is_file($sConfigFilePath))
|
||||
{
|
||||
if (is_file($sConfigFilePath)) {
|
||||
$oConfig = new Config($sConfigFilePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$oConfig = null;
|
||||
}
|
||||
$oConfig->UpdateFromParams($aParamValues);
|
||||
|
||||
if (false === is_null($oConfig)) {
|
||||
$oConfig->UpdateFromParams($aParamValues);
|
||||
}
|
||||
|
||||
SetupUtils::EnterMaintenanceMode($oConfig);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user