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
|
||||
if ($missing != "db" && strlen($_GET["db"])) {
|
||||
$result = $dbh->query("SHOW TABLES");
|
||||
if (!$result) {
|
||||
echo "<p class='error'>" . lang('No tables.') . "\n";
|
||||
} else {
|
||||
if (!$result->num_rows) {
|
||||
echo "<p class='message'>" . lang('No tables.') . "\n";
|
||||
} else {
|
||||
|
@ -451,6 +454,7 @@ class Adminer {
|
|||
}
|
||||
}
|
||||
$result->free();
|
||||
}
|
||||
echo '<p><a href="' . h(ME) . 'create=">' . lang('Create new table') . "</a>\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue