Treat DROP DATABASE from SQL query
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@974 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
70a04751bc
commit
2b3bb44b00
|
@ -441,6 +441,9 @@ class Adminer {
|
||||||
<?php
|
<?php
|
||||||
if ($missing != "db" && strlen($_GET["db"])) {
|
if ($missing != "db" && strlen($_GET["db"])) {
|
||||||
$result = $dbh->query("SHOW TABLES");
|
$result = $dbh->query("SHOW TABLES");
|
||||||
|
if (!$result) {
|
||||||
|
echo "<p class='error'>" . lang('No tables.') . "\n";
|
||||||
|
} else {
|
||||||
if (!$result->num_rows) {
|
if (!$result->num_rows) {
|
||||||
echo "<p class='message'>" . lang('No tables.') . "\n";
|
echo "<p class='message'>" . lang('No tables.') . "\n";
|
||||||
} else {
|
} else {
|
||||||
|
@ -451,6 +454,7 @@ class Adminer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$result->free();
|
$result->free();
|
||||||
|
}
|
||||||
echo '<p><a href="' . h(ME) . 'create=">' . lang('Create new table') . "</a>\n";
|
echo '<p><a href="' . h(ME) . 'create=">' . lang('Create new table') . "</a>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue