From: Jakub Vrana Date: Sun, 23 Feb 2025 07:41:33 +0000 (+0100) Subject: Ignore error in dropping old constraint X-Git-Tag: v4.17.0~22 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=ba35e11bae90e68c11d01a94ebb03860d605ee8b;p=adminer.git Ignore error in dropping old constraint --- diff --git a/adminer/check.inc.php b/adminer/check.inc.php index 0d8b06db..997a09c5 100644 --- a/adminer/check.inc.php +++ b/adminer/check.inc.php @@ -5,7 +5,7 @@ $row = $_POST; if ($row && !$error) { $result = ($name == "" || queries("ALTER TABLE " . table($TABLE) . " DROP CONSTRAINT " . idf_escape($name))); - if (!$row["drop"] && $result) { + if (!$row["drop"]) { $result = queries("ALTER TABLE " . table($TABLE) . " ADD" . ($row["name"] != "" ? " CONSTRAINT " . idf_escape($row["name"]) . "" : "") . " CHECK ($row[clause])"); //! SQL injection } queries_redirect(