From: Peter Knut Date: Tue, 8 Oct 2024 20:55:43 +0000 (+0200) Subject: Editor: Fix array conversion to string (issue #3) X-Git-Tag: v4.16.0~78 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=927444ffdd7a9afdfa1e4f67030880c04fb94b94;p=adminer.git Editor: Fix array conversion to string (issue #3) --- diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index e8fed7ac..58d5fce3 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -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"])) {