Clear database cache with wrong database
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@257 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
964520252c
commit
aab41950b3
|
@ -1,5 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]))) {
|
if (!(strlen($_GET["db"]) ? $mysql->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'));
|
page_header(lang('Select database'));
|
||||||
if (strlen($_GET["db"])) {
|
if (strlen($_GET["db"])) {
|
||||||
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
||||||
|
|
Loading…
Reference in a new issue