mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
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:
@@ -1,10 +1,8 @@
|
||||
<?php
|
||||
if ($_POST && !$error && !$_POST["add"] && !$_POST["change"] && !$_POST["change-js"]) {
|
||||
if (strlen($_GET["name"])) {
|
||||
if ($mysql->query("ALTER TABLE " . idf_escape($_GET["foreign"]) . " DROP FOREIGN KEY " . idf_escape($_GET["name"])) && $_POST["drop"]) {
|
||||
if (strlen($_GET["name"]) && $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.'));
|
||||
}
|
||||
}
|
||||
if (!$_POST["drop"]) {
|
||||
$source = array_filter($_POST["source"], 'strlen');
|
||||
ksort($source);
|
||||
|
Reference in New Issue
Block a user