Fix error handling for language from cookie.

This commit is contained in:
Michal Čihař
2010-04-02 11:52:25 +02:00
parent 764a808e1a
commit a164ce48e5

View File

@@ -68,9 +68,9 @@ function PMA_langCheck()
if (! empty($_COOKIE['pma_lang'])) { if (! empty($_COOKIE['pma_lang'])) {
if (PMA_langSet($_COOKIE['pma_lang'])) { if (PMA_langSet($_COOKIE['pma_lang'])) {
return true; return true;
} elseif (!is_string($_COOKIE['lang'])) { } elseif (!is_string($_COOKIE['pma_lang'])) {
/* Faked request, don't care on localisation */ /* Faked request, don't care on localisation */
$GLOBALS['lang_failed_request'] = 'Yes'; $GLOBALS['lang_failed_cookie'] = 'Yes';
} else { } else {
$GLOBALS['lang_failed_cookie'] = $_COOKIE['pma_lang']; $GLOBALS['lang_failed_cookie'] = $_COOKIE['pma_lang'];
} }