From 619b49c3d4b40b0644fa21758dae908ba9e085bb Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 21 Mar 2014 22:45:38 -0700 Subject: [PATCH] Allow arrays to be ignored in hidden_fields() --- adminer/include/functions.inc.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 ''; } } } -- 2.39.5