]> git.joonet.de Git - adminer.git/commitdiff
Limit non-unique where updates
authorJakub Vrana <jakub@vrana.cz>
Thu, 1 Feb 2018 15:25:30 +0000 (16:25 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 1 Feb 2018 15:25:30 +0000 (16:25 +0100)
adminer/select.inc.php

index d65a66bb5ff22c2662d878859968694a921c679c..c8eb54811ebaf687d2854054829671e8187dd1c6 100644 (file)
@@ -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) {