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:
@@ -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">
|
||||
<!--
|
||||
|
Reference in New Issue
Block a user