Skip to content

Commit 40ef8c4

Browse files
committed
Fix PHP warning
1 parent 94ef071 commit 40ef8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebApp/LanguageUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class LanguageUtils {
66

77
public static function getPreferredUserLanguage($priorities) {
8-
$header = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
8+
$header = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '';
99
$rc = self::getBest($header, $priorities);
1010
if ($rc == NULL) {
1111
// Search the languages, e.g. iOS does not return the general language

0 commit comments

Comments
 (0)