We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ef071 commit 40ef8c4Copy full SHA for 40ef8c4
src/WebApp/LanguageUtils.php
@@ -5,7 +5,7 @@
5
class LanguageUtils {
6
7
public static function getPreferredUserLanguage($priorities) {
8
- $header = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
+ $header = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
9
$rc = self::getBest($header, $priorities);
10
if ($rc == NULL) {
11
// Search the languages, e.g. iOS does not return the general language
0 commit comments