diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-03-31 18:42:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 18:42:11 +0300 |
commit | d652b69949aa8117760739b87d25c03a1fdeaae8 (patch) | |
tree | dd409302a2e157cecffd0ecd28c1907c9cf5a385 | |
parent | c05172ec6b38cd95d17282c2e2d256c18f53fd81 (diff) | |
parent | 8ba8bb36cf6b7715bec49b8af763641b1a3899f9 (diff) |
Merge pull request #334 from krupers/patch-1v24.0.0beta2
Update PhpStatistics.php
-rw-r--r-- | lib/PhpStatistics.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PhpStatistics.php b/lib/PhpStatistics.php index a4c5d8d..2f32f3d 100644 --- a/lib/PhpStatistics.php +++ b/lib/PhpStatistics.php @@ -68,7 +68,7 @@ class PhpStatistics { } // get status information about the cache - $status = opcache_get_status(false); + $status = (function_exists('opcache_get_status')) ? opcache_get_status(false) : false; if ($status === false) { // no array, returning back empty array to prevent any errors on JS side. |