array syntax fix

This commit is contained in:
Serghey Rodin 2016-06-24 17:38:08 +03:00
commit b62aba465b

View file

@ -69,7 +69,7 @@ function detect_user_language($fallback='en') {
// Sort Accept-Language by `q` value
$accept_langs = explode(',', preg_replace('/\s/', '', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])));
$accept_langs_sorted = [];
$accept_langs_sorted = array() ;
foreach ($accept_langs as $lang) {
$div = explode(';q=', $lang, 2);
if (count($div) < 2) {