From: Jakub Vrana Date: Tue, 25 Feb 2014 08:10:34 +0000 (-0800) Subject: Apply unconvert_field() in clone and multi-edit X-Git-Tag: v4.1.0~33 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=4c5667b93ff1becd1d029809d8aab89a00a46139;p=adminer.git Apply unconvert_field() in clone and multi-edit --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 2e785a08..6367e9a5 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -52,7 +52,11 @@ if ($_GET["val"] && is_ajax()) { if ($_POST && !$error) { $where_check = $where; if (!$_POST["all"] && is_array($_POST["check"])) { - $where_check[] = "((" . implode(") OR (", array_map('where_check', $_POST["check"])) . "))"; + $checks = array(); + foreach ($_POST["check"] as $check) { + $checks[] = where_check($check, $fields); + } + $where_check[] = "((" . implode(") OR (", $checks) . "))"; } $where_check = ($where_check ? "\nWHERE " . implode(" AND ", $where_check) : ""); $primary = $unselected = null;