Fix some PHP8.1 issues if possible
This commit is contained in:
parent
3b03da3259
commit
477bec1977
4 changed files with 9 additions and 9 deletions
|
@ -188,10 +188,10 @@ class L10n
|
|||
{
|
||||
$lang_variable = $server['HTTP_ACCEPT_LANGUAGE'] ?? null;
|
||||
|
||||
$acceptedLanguages = preg_split('/,\s*/', $lang_variable);
|
||||
|
||||
if (empty($acceptedLanguages)) {
|
||||
if (empty($lang_variable)) {
|
||||
$acceptedLanguages = [];
|
||||
} else {
|
||||
$acceptedLanguages = preg_split('/,\s*/', $lang_variable);
|
||||
}
|
||||
|
||||
// Add get as absolute quality accepted language (except this language isn't valid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue