mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Editor: Fix array conversion to string (issue #3)
This commit is contained in:
@@ -347,7 +347,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
|||||||
$col = $where["col"];
|
$col = $where["col"];
|
||||||
$op = $where["op"];
|
$op = $where["op"];
|
||||||
$val = $where["val"];
|
$val = $where["val"];
|
||||||
if (($key < 0 ? "" : $col) . $val != "") {
|
if (($key >= 0 && $col != "") || $val != "") {
|
||||||
$conds = array();
|
$conds = array();
|
||||||
foreach (($col != "" ? array($col => $fields[$col]) : $fields) as $name => $field) {
|
foreach (($col != "" ? array($col => $fields[$col]) : $fields) as $name => $field) {
|
||||||
if ($col != "" || is_numeric($val) || !preg_match(number_type(), $field["type"])) {
|
if ($col != "" || is_numeric($val) || !preg_match(number_type(), $field["type"])) {
|
||||||
|
Reference in New Issue
Block a user