undefined pma_lang the first time (cookie does not exist)

This commit is contained in:
Marc Delisle
2005-11-25 15:40:33 +00:00
parent b1ae3a10bc
commit 7cb1a1f155
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2005-11-25 Marc Delisle <lem9@users.sourceforge.net>
* main.php: move server choice into MySQL container
* libraries/select_server.lib.php: show currently selected server
* libraries/select_lang.lib.php: undefined pma_lang the first time (cookie
does not exist)
2005-11-24 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/url_generating.lib.php:

View File

@@ -30,7 +30,7 @@ function PMA_langCheck() {
if ( isset($_REQUEST['lang']) && PMA_langSet($_REQUEST['lang']) ) {
return true;
}
if ( PMA_langSet( $_COOKIE['pma_lang'] ) ) {
if ( isset($_COOKIE['pma_lang']) && PMA_langSet( $_COOKIE['pma_lang'] ) ) {
return true;
}