undefined variable (if server connection fails)

This commit is contained in:
Sebastian Mendel
2005-11-20 11:49:57 +00:00
parent 851763cb17
commit 55662d7c88
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,9 @@ $Source$
2005-11-20 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/common.lib.php::PMA_showMySQLDocu()
- prevent undefined constants (if server connection fails)
- undefined constant (if server connection fails)
* libraries/select_theme.lib.php
- undefined variable (if server connection fails)
2005-11-18 Marc Delisle <lem9@users.sourceforge.net>
* libraries/database_interface.lib.php: initialize in case there are

View File

@@ -79,7 +79,7 @@ if ($PMA_ThemeAvailable == TRUE) { // themeManager is available
// Allow different theme per server
$theme_cookie_name = 'pma_theme';
if ($GLOBALS['cfg']['ThemePerServer']) {
if ( isset( $server ) && $GLOBALS['cfg']['ThemePerServer'] ) {
$theme_cookie_name .= '-' . $server;
}