Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PhpStatistics.php')
-rw-r--r--lib/PhpStatistics.php2
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.