diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 19181a01..8e1ab2ee 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -59,8 +59,8 @@ if ($_POST && !$error) { $result = true; $affected = 0; $command = ($_POST["delete"] ? ($_POST["all"] && !$where ? "TRUNCATE " : "DELETE FROM ") : ($_POST["clone"] ? "INSERT INTO " : "UPDATE ")) . idf_escape($_GET["select"]); + $set = array(); if (!$_POST["delete"]) { - $set = array(); foreach ($columns as $name => $val) { //! should check also for edit or insert privileges $val = process_input($fields[$name]); if ($_POST["clone"]) {