From: Jakub Vrana Date: Thu, 1 Feb 2018 15:25:30 +0000 (+0100) Subject: Limit non-unique where updates X-Git-Tag: v4.6.0~20 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=4961588f7d9946375232c816417d61b80c0b17a8;p=adminer.git Limit non-unique where updates --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index d65a66bb..c8eb5481 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -124,7 +124,7 @@ if ($_POST && !$error) { ? $driver->delete($TABLE, $where2, 1) : ($_POST["clone"] ? queries("INSERT" . limit1($query, $where2)) - : $driver->update($TABLE, $set, $where2) + : $driver->update($TABLE, $set, $where2, 1) ) ); if (!$result) {