mirror of
https://github.com/vrana/adminer.git
synced 2026-07-06 01:39:18 +02:00
Move error output to page_header()
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@386 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -54,7 +54,7 @@ if ($_POST && !$error && !$_POST["add"] && !$_POST["drop_col"]) {
|
||||
}
|
||||
$error = $mysql->error;
|
||||
}
|
||||
page_header(strlen($_GET["create"]) ? lang('Alter table') : lang('Create table'), array("table" => $_GET["create"]), $_GET["create"]);
|
||||
page_header((strlen($_GET["create"]) ? lang('Alter table') : lang('Create table')), $error, array("table" => $_GET["create"]), $_GET["create"]);
|
||||
|
||||
$engines = array();
|
||||
$result = $mysql->query("SHOW ENGINES");
|
||||
@@ -65,9 +65,6 @@ while ($row = $result->fetch_assoc()) {
|
||||
}
|
||||
$result->free();
|
||||
|
||||
if ($error) {
|
||||
echo "<p class='error'>" . lang('Unable to operate table') . ": " . htmlspecialchars($error) . "</p>\n";
|
||||
}
|
||||
if ($_POST) {
|
||||
$row = $_POST;
|
||||
ksort($row["fields"]);
|
||||
|
||||
Reference in New Issue
Block a user