Fix undefined indexes.

This commit is contained in:
Michal Čihař
2005-11-25 08:28:51 +00:00
parent d4a6f3a670
commit dc536cef69
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2005-11-25 Michal Čihař <michal@cihar.com>
* libraries/common.lib.php, libraries/footer.inc.php,
libraries/header.inc.php: Header and footer per themes (RFE #984152).
* libraries/select_lang.lib.php: Fix undefined indexes.
2005-11-24 Marc Delisle <lem9@users.sourceforge.net>
* js/querywindow.js: bug #1365503, "do not overwrite this query"

View File

@@ -22,12 +22,12 @@
*/
function PMA_langCheck() {
// check forced language
if ( PMA_langSet($GLOBALS['cfg']['Lang']) ) {
if ( isset($GLOBALS['cfg']['Lang']) && PMA_langSet($GLOBALS['cfg']['Lang']) ) {
return true;
}
// check previous set language
if ( PMA_langSet($_REQUEST['lang']) ) {
if ( isset($_REQUEST['lang']) && PMA_langSet($_REQUEST['lang']) ) {
return true;
}
if ( PMA_langSet( $_COOKIE['pma_lang'] ) ) {