Fix undefined indexes.
This commit is contained in:
@@ -8,6 +8,7 @@ $Source$
|
|||||||
2005-11-25 Michal Čihař <michal@cihar.com>
|
2005-11-25 Michal Čihař <michal@cihar.com>
|
||||||
* libraries/common.lib.php, libraries/footer.inc.php,
|
* libraries/common.lib.php, libraries/footer.inc.php,
|
||||||
libraries/header.inc.php: Header and footer per themes (RFE #984152).
|
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>
|
2005-11-24 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* js/querywindow.js: bug #1365503, "do not overwrite this query"
|
* js/querywindow.js: bug #1365503, "do not overwrite this query"
|
||||||
|
@@ -22,12 +22,12 @@
|
|||||||
*/
|
*/
|
||||||
function PMA_langCheck() {
|
function PMA_langCheck() {
|
||||||
// check forced language
|
// check forced language
|
||||||
if ( PMA_langSet($GLOBALS['cfg']['Lang']) ) {
|
if ( isset($GLOBALS['cfg']['Lang']) && PMA_langSet($GLOBALS['cfg']['Lang']) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check previous set language
|
// check previous set language
|
||||||
if ( PMA_langSet($_REQUEST['lang']) ) {
|
if ( isset($_REQUEST['lang']) && PMA_langSet($_REQUEST['lang']) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ( PMA_langSet( $_COOKIE['pma_lang'] ) ) {
|
if ( PMA_langSet( $_COOKIE['pma_lang'] ) ) {
|
||||||
|
Reference in New Issue
Block a user