Join two ifs
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@184 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
c9c2a9eb1e
commit
f3f7345829
|
@ -1,10 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
if ($_POST && !$error && !$_POST["add"] && !$_POST["change"] && !$_POST["change-js"]) {
|
if ($_POST && !$error && !$_POST["add"] && !$_POST["change"] && !$_POST["change-js"]) {
|
||||||
if (strlen($_GET["name"])) {
|
if (strlen($_GET["name"]) && $mysql->query("ALTER TABLE " . idf_escape($_GET["foreign"]) . " DROP FOREIGN KEY " . idf_escape($_GET["name"])) && $_POST["drop"]) {
|
||||||
if ($mysql->query("ALTER TABLE " . idf_escape($_GET["foreign"]) . " DROP FOREIGN KEY " . idf_escape($_GET["name"])) && $_POST["drop"]) {
|
|
||||||
redirect($SELF . "table=" . urlencode($_GET["foreign"]), lang('Foreign key has been dropped.'));
|
redirect($SELF . "table=" . urlencode($_GET["foreign"]), lang('Foreign key has been dropped.'));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!$_POST["drop"]) {
|
if (!$_POST["drop"]) {
|
||||||
$source = array_filter($_POST["source"], 'strlen');
|
$source = array_filter($_POST["source"], 'strlen');
|
||||||
ksort($source);
|
ksort($source);
|
||||||
|
|
Loading…
Reference in a new issue