Prevent 'undefined' in php error log

This commit is contained in:
djmaze 2021-08-18 12:25:17 +02:00
parent 50d7803c17
commit 212aeb6910
3 changed files with 7 additions and 3 deletions

View file

@ -15,7 +15,7 @@
}
// PHP 8
if (!\function_exists('str_contains')) {
if (!function_exists('str_contains')) {
function str_contains(string $haystack, string $needle) : bool
{
return false !== \strpos($haystack, $needle);
@ -233,6 +233,10 @@
unset($sSalt, $sData, $sInstalled, $sPrivateDataFolderInternalName);
}
if (!isset($_SERVER['HTTP_USER_AGENT'])) {
$_SERVER['HTTP_USER_AGENT'] = '';
}
// See https://github.com/kjdev/php-ext-brotli
if (!ini_get('zlib.output_compression') && !ini_get('brotli.output_compression')) {
if (defined('USE_GZIP')) {