From: Jakub Vrana Date: Thu, 17 Mar 2011 09:07:58 +0000 (+0100) Subject: Avoid warning with wrong table name X-Git-Tag: v3.2.1~28 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=010b3e93078610bffd3e35289e44748087cb3bef;p=adminer.git Avoid warning with wrong table name --- diff --git a/adminer/create.inc.php b/adminer/create.inc.php index 8843cfa3..f56e15a3 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -14,6 +14,9 @@ if ($TABLE != "") { $orig_fields = fields($TABLE); $orig_status = table_status($TABLE); } +if ($_POST && !$_POST["fields"]) { + $_POST["fields"] = array(); +} if ($_POST && !$error && !$_POST["add"] && !$_POST["drop_col"] && !$_POST["up"] && !$_POST["down"]) { if ($_POST["drop"]) {