mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Display error on invalid alter table and view pages
This commit is contained in:
@@ -28,12 +28,15 @@ if ($_POST && !$error) {
|
||||
}
|
||||
}
|
||||
|
||||
page_header(($TABLE != "" ? lang('Alter view') : lang('Create view')), $error, array("table" => $TABLE), $TABLE);
|
||||
|
||||
if (!$_POST && $TABLE != "") {
|
||||
$row = view($TABLE);
|
||||
$row["name"] = $TABLE;
|
||||
if (!$error) {
|
||||
$error = $connection->error;
|
||||
}
|
||||
}
|
||||
|
||||
page_header(($TABLE != "" ? lang('Alter view') : lang('Create view')), $error, array("table" => $TABLE), $TABLE);
|
||||
?>
|
||||
|
||||
<form action="" method="post">
|
||||
|
Reference in New Issue
Block a user