]> git.joonet.de Git - adminer.git/commitdiff
Apply unconvert_field() in clone and multi-edit
authorJakub Vrana <jakub@vrana.cz>
Tue, 25 Feb 2014 08:10:34 +0000 (00:10 -0800)
committerJakub Vrana <jakub@vrana.cz>
Tue, 25 Feb 2014 08:10:34 +0000 (00:10 -0800)
adminer/select.inc.php

index 2e785a08fb0e64730955d3c5c6fcd1f85e81fec4..6367e9a54a10f23b282da25c077beb2702b91027 100644 (file)
@@ -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;