diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 117248cb..9ecd43b6 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -747,12 +747,14 @@ function friendly_url($val) { */ function hidden_fields($process, $ignore = array()) { while (list($key, $val) = each($process)) { - if (is_array($val)) { - foreach ($val as $k => $v) { - $process[$key . "[$k]"] = $v; + if (!in_array($key, $ignore)) { + if (is_array($val)) { + foreach ($val as $k => $v) { + $process[$key . "[$k]"] = $v; + } + } else { + echo ''; } - } elseif (!in_array($key, $ignore)) { - echo ''; } } }