Remove empty if
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@770 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
7e9bca6f1c
commit
38059b61e4
|
@ -101,9 +101,8 @@ if ($_POST && !$error) {
|
||||||
}
|
}
|
||||||
$command .= ($_POST["clone"] ? "\nSELECT " . implode(", ", $set) . " FROM " . idf_escape($_GET["select"]) : " SET" . implode(",", $set));
|
$command .= ($_POST["clone"] ? "\nSELECT " . implode(", ", $set) . " FROM " . idf_escape($_GET["select"]) : " SET" . implode(",", $set));
|
||||||
}
|
}
|
||||||
if (!$_POST["delete"] && !$set) {
|
if ($_POST["delete"] || $set) {
|
||||||
// nothing
|
if ($_POST["all"]) {
|
||||||
} elseif ($_POST["all"]) {
|
|
||||||
$result = queries($command . ($where ? "\nWHERE " . implode(" AND ", $where) : ""));
|
$result = queries($command . ($where ? "\nWHERE " . implode(" AND ", $where) : ""));
|
||||||
$affected = $dbh->affected_rows;
|
$affected = $dbh->affected_rows;
|
||||||
} else {
|
} else {
|
||||||
|
@ -117,6 +116,7 @@ if ($_POST && !$error) {
|
||||||
$affected += $dbh->affected_rows;
|
$affected += $dbh->affected_rows;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
query_redirect(queries(), remove_from_uri("page"), lang('%d item(s) have been affected.', $affected), $result, false, !$result);
|
query_redirect(queries(), remove_from_uri("page"), lang('%d item(s) have been affected.', $affected), $result, false, !$result);
|
||||||
//! display edit page in case of an error
|
//! display edit page in case of an error
|
||||||
} elseif (is_string($file = get_file("csv_file"))) {
|
} elseif (is_string($file = get_file("csv_file"))) {
|
||||||
|
|
Loading…
Reference in a new issue