Limit non-unique where updates

This commit is contained in:
Jakub Vrana 2018-02-01 16:25:30 +01:00
parent f4625da53d
commit 4961588f7d

View 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) {