]> git.joonet.de Git - adminer.git/commitdiff
Editor: Fix array conversion to string (issue #3)
authorPeter Knut <peter@pematon.com>
Tue, 8 Oct 2024 20:55:43 +0000 (22:55 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 10:16:40 +0000 (11:16 +0100)
editor/include/adminer.inc.php

index e8fed7accfd9041e1a18698ecda4bcc1e9890f4f..58d5fce313d198adc9b3d82b7a00a1984fb9ec5e 100644 (file)
@@ -347,7 +347,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
                        $col = $where["col"];
                        $op = $where["op"];
                        $val = $where["val"];
-                       if (($key < 0 ? "" : $col) . $val != "") {
+                       if (($key >= 0 && $col != "") || $val != "") {
                                $conds = array();
                                foreach (($col != "" ? array($col => $fields[$col]) : $fields) as $name => $field) {
                                        if ($col != "" || is_numeric($val) || !preg_match(number_type(), $field["type"])) {