diff --git a/connect.inc.php b/connect.inc.php index a0fdb282..3b7e87e9 100644 --- a/connect.inc.php +++ b/connect.inc.php @@ -1,5 +1,8 @@ select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]))) { + if (strlen($_GET["db"])) { + unset($_SESSION["databases"][$_GET["server"]]); + } page_header(lang('Select database')); if (strlen($_GET["db"])) { echo "
" . lang('Invalid database.') . "
\n";