diff --git a/setup/AnalyzeInstallation.php b/setup/AnalyzeInstallation.php index 96b902ce5..ca0c35ea1 100644 --- a/setup/AnalyzeInstallation.php +++ b/setup/AnalyzeInstallation.php @@ -58,6 +58,7 @@ class AnalyzeInstallation * ) * @throws \Exception */ + public function AnalyzeInstallation(?Config $oConfig, mixed $modulesPath, bool $bAbortOnMissingDependency = false, ?array $aModulesToLoad = null) { $aRes = [ diff --git a/setup/wizardsteps.class.inc.php b/setup/wizardsteps.class.inc.php index c2f9860f4..67b2a18aa 100644 --- a/setup/wizardsteps.class.inc.php +++ b/setup/wizardsteps.class.inc.php @@ -672,9 +672,13 @@ class WizStepLicense extends WizardStep private function NeedsGdprConsent() { $sMode = $this->oWizard->GetParameter('install_mode'); - $aModules = SetupUtils::AnalyzeInstallation($this->oWizard); - return (($sMode === 'install') && SetupUtils::IsConnectableToITopHub($aModules)); + if ($sMode !== 'install') { + return false; + } + + $aModules = SetupUtils::AnalyzeInstallation($this->oWizard); + return SetupUtils::IsConnectableToITopHub($aModules); } /**