From 1a6186648c884671efc1f21d25399648a779fdb9 Mon Sep 17 00:00:00 2001 From: soleuu Date: Tue, 30 Aug 2016 13:23:14 +0200 Subject: [PATCH] postgresql error with index on hidden columns (ctid) --- adminer/include/adminer.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index eee9f7b2..9761ac81 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -352,8 +352,9 @@ focus(document.getElementById('username')); echo "var indexColumns = "; $columns = array(); foreach ($indexes as $index) { - if ($index["type"] != "FULLTEXT") { - $columns[reset($index["columns"])] = 1; + $current_key = reset($index["columns"]); + if ($index["type"] != "FULLTEXT" && $current_key) { + $columns[$current_key] = 1; } } $columns[""] = 1;