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:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-03-31 18:42:11 +0300
committerGitHub <noreply@github.com>2022-03-31 18:42:11 +0300
commitd652b69949aa8117760739b87d25c03a1fdeaae8 (patch)
treedd409302a2e157cecffd0ecd28c1907c9cf5a385
parentc05172ec6b38cd95d17282c2e2d256c18f53fd81 (diff)
parent8ba8bb36cf6b7715bec49b8af763641b1a3899f9 (diff)
Merge pull request #334 from krupers/patch-1v24.0.0beta2
Update 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.