mirror of
https://github.com/vrana/adminer.git
synced 2026-02-27 17:11:22 +01:00
Don't try to drop new object
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@315 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -4,7 +4,7 @@ $trigger_event = array("INSERT", "UPDATE", "DELETE");
|
||||
|
||||
$dropped = false;
|
||||
if ($_POST && !$error) {
|
||||
if ($_POST["dropped"] || $mysql->query("DROP TRIGGER " . idf_escape($_GET["name"]))) {
|
||||
if (strlen($_GET["name"]) && ($_POST["dropped"] || $mysql->query("DROP TRIGGER " . idf_escape($_GET["name"])))) {
|
||||
if ($_POST["drop"]) {
|
||||
redirect($SELF . "table=" . urlencode($_GET["trigger"]), lang('Trigger has been dropped.'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user