When dropping a database you will get an 'undefined index "db"' PHP-notice,

because the $GLOBALS['db'] variable gets unset after dropping a DB and the
reload-left-frame generator still uses this variable.
Added a isset()-Workaround.
This commit is contained in:
Garvin Hicking
2003-02-04 11:00:12 +00:00
parent 18fc8cbec2
commit 9854d7a4c8

View File

@@ -1130,7 +1130,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
// Reloads the navigation frame via JavaScript if required
if (isset($GLOBALS['reload']) && $GLOBALS['reload']) {
echo "\n";
$reload_url = './left.php3?' . PMA_generate_common_url($GLOBALS['db'], '', '&');
$reload_url = './left.php3?' . PMA_generate_common_url((isset($GLOBALS['db']) ? $GLOBALS['db'] : ''), '', '&');
?>
<script type="text/javascript" language="javascript1.2">
<!--