From 2fa3ff6282380c9ea4fe7b03e906917ff0829ea2 Mon Sep 17 00:00:00 2001 From: Thom Pol <> Date: Mon, 22 Feb 2021 21:19:16 +0100 Subject: [PATCH] Fix several typo's (#11 and #28) --- lib/os/class.ISPConfigDebianOS.inc.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/os/class.ISPConfigDebianOS.inc.php b/lib/os/class.ISPConfigDebianOS.inc.php index 7dc71aa..3e9542b 100644 --- a/lib/os/class.ISPConfigDebianOS.inc.php +++ b/lib/os/class.ISPConfigDebianOS.inc.php @@ -161,15 +161,9 @@ class ISPConfigDebianOS extends ISPConfigBaseOS { $modules = array( 'mpm_prefork' ); - - if(ISPConfig::wantsPHP() === 'system') { - array_unshift($modules, 'php' . $this->getSystemPHPVersion()); - } else { + if(ISPConfig::wantsPHP() !== 'system') { array_unshift($modules, 'php8.0'); - ); } - } - return $modules; } @@ -814,7 +808,7 @@ mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"'; if(ISPConfig::wantsPHP() === 'system') { $php_versions = array($this->getSystemPHPVersion()); } else { - // If a new version is added, the getApacheModulesToDisable function should be updated to disable the latest version + // If a new version is added, the getApacheModulesToDisable function should be updated to disable the latest version (this part could be improved) $php_versions = array( '5.6', '7.0', -- GitLab