1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 23:27:17 +02:00

Save bytes

This commit is contained in:
Jakub Vrana
2011-08-08 18:23:32 +02:00
parent 1a30f25311
commit b7e1cb09c1
5 changed files with 13 additions and 17 deletions

View File

@@ -15,10 +15,8 @@ if ($_POST && !$error) {
page_header(($TABLE != "" ? lang('Alter view') : lang('Create view')), $error, array("table" => $TABLE), $TABLE);
$row = array();
if ($_POST) {
$row = $_POST;
} elseif ($TABLE != "") {
$row = $_POST;
if (!$row && $TABLE != "") {
$row = view($TABLE);
$row["name"] = $TABLE;
}