mirror of
https://github.com/vrana/adminer.git
synced 2026-06-17 20:41:48 +02:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user