Index bug fix

This commit is contained in:
Dennis Eichhorn 2018-09-05 19:26:53 +02:00 committed by GitHub
parent 180bb9c6b9
commit ac1749a9bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,10 +171,10 @@ final class Request extends RequestAbstract
$components = \explode(';', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
if (\stripos($components[0], ',') !== false) {
$locals = \explode(',', $components[]);
$locals = \explode(',', $components[0]);
}
$firstLocalComponents = \explode('-', $locals[]);
$firstLocalComponents = \explode('-', $locals[0]);
return $firstLocalComponents[0];
}