1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-30 09:39:51 +02:00

Editor: Fix array conversion to string (issue #3)

This commit is contained in:
Peter Knut
2024-10-08 22:55:43 +02:00
parent 3df88d4a24
commit 7d6c7998d8

View File

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