Skip to content

Commit

Permalink
Correctly detect if opcache is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Jun 2, 2024
1 parent f56ccae commit aa82012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formwork/src/Panel/Controllers/OptionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function info(): Response
{
$this->ensurePermission('options.info');

$opcacheStatus = opcache_get_status(false) ?: [];
$opcacheStatus = extension_loaded('zend opcache') ? (opcache_get_status(false) ?: []) : [];

$gdInfo = extension_loaded('gd') ? gd_info() : [];

Expand Down

0 comments on commit aa82012

Please sign in to comment.