diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-07-08 15:09:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-08 15:09:29 +0200 |
commit | 372c9d2ee6e3bcc9c5e19d97390c14a2ea7ace1a (patch) | |
tree | 7f26f03e26031a00e71996568bf6eb844cbf10bc /apps/settings/lib | |
parent | 39f052407adae530e425df1d85c29be513da5f5e (diff) | |
download | nextcloud-server-372c9d2ee6e3bcc9c5e19d97390c14a2ea7ace1a.tar.gz nextcloud-server-372c9d2ee6e3bcc9c5e19d97390c14a2ea7ace1a.zip |
fix: check both CLI and value
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r-- | apps/settings/lib/SetupChecks/PhpOpcacheSetup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php b/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php index 254c4155df8..35422078c82 100644 --- a/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php +++ b/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php @@ -115,7 +115,7 @@ class PhpOpcacheSetup implements ISetupCheck { public function run(): SetupResult { // Skip OPcache checks if running from CLI - if (PHP_SAPI === 'cli') { + if (OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) { return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.')); } |