Initialize variables outside blocks

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@427 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2008-07-10 15:39:24 +00:00
parent de8a3c57dc
commit d8df52061e
13 changed files with 20 additions and 28 deletions

View File

@@ -31,12 +31,12 @@ if ($_POST && !$error) {
page_header(strlen($_GET["db"]) ? lang('Alter database') : lang('Create database'), $error, array(), $_GET["db"]);
$collations = collations();
$name = $_GET["db"];
$collate = array();
if ($_POST) {
$name = $_POST["name"];
$collate = $_POST["collation"];
} else {
$name = $_GET["db"];
$collate = array();
if (!strlen($_GET["db"])) {
$result = $mysql->query("SHOW GRANTS");
while ($row = $result->fetch_row()) {