From 5a0be7e7fe5fd15f6f2280eb97a4faee7e969d19 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 26 Apr 2013 21:09:11 -0700 Subject: [PATCH] Convert fields with selected columns --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index fbc0d19d..6bc33198 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -33,7 +33,7 @@ $limit = $adminer->selectLimitProcess(); $from = ($select ? implode(", ", $select) : "*" . ($oid ? ", $oid" : "")); if ($jush == "sql" && !$_POST["export"]) { foreach ($columns as $key => $val) { - if ($select && !$select[$key]) { + if ($select && !in_array(idf_escape($key), $select)) { continue; } $as = convert_field($fields[$key]);