Attempt to fix undefined array index
This commit is contained in:
parent
85e210cc3e
commit
76d158c69b
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class User
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->locale = \Locale::acceptFromHttp(
|
$this->locale = \Locale::acceptFromHttp(
|
||||||
$_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? DEFAULT_LOCALE
|
isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : DEFAULT_LOCALE
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!isset($this->id)) {
|
if (!isset($this->id)) {
|
||||||
|
|
Loading…
Reference in a new issue