Attempt to fix undefined array index

This commit is contained in:
grandeljay 2022-06-13 17:33:11 +02:00
parent 85e210cc3e
commit 76d158c69b

View file

@ -36,7 +36,7 @@ class User
}
$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)) {