diff options
Diffstat (limited to 'lib/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. |