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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index a581397212a..7916a13179a 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -1403,14 +1403,6 @@ class OC_Util {
if (function_exists('accelerator_reset')) {
accelerator_reset();
}
- // XCache
- if (function_exists('xcache_clear_cache')) {
- if (\OC::$server->getIniWrapper()->getBool('xcache.admin.enable_auth')) {
- \OCP\Util::writeLog('core', 'XCache opcode cache will not be cleared because "xcache.admin.enable_auth" is enabled.', ILogger::WARN);
- } else {
- @xcache_clear_cache(XC_TYPE_PHP, 0);
- }
- }
// Opcache (PHP >= 5.5)
if (function_exists('opcache_reset')) {
@opcache_reset();
@@ -1535,6 +1527,10 @@ class OC_Util {
* @return boolean
*/
public static function isIe() {
+ if (!isset($_SERVER['HTTP_USER_AGENT'])) {
+ return false;
+ }
+
return preg_match(Request::USER_AGENT_IE, $_SERVER['HTTP_USER_AGENT']) === 1;
}