From 6bcc0fdcff9d906f24696d269ec41602c67fe6d9 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 1 Feb 2011 15:11:57 +0100 Subject: [PATCH] Only get column name keys. --- horde/admin/sqlshell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horde/admin/sqlshell.php b/horde/admin/sqlshell.php index fe0ecf71d..f5f9e0677 100644 --- a/horde/admin/sqlshell.php +++ b/horde/admin/sqlshell.php @@ -60,7 +60,7 @@ if (isset($result)) { echo ''; $first = true; $i = 0; - while ($row = $result->fetch()) { + while ($row = $result->fetch(PDO::FETCH_ASSOC)) { if ($first) { echo ''; foreach ($row as $key => $val) { -- 2.11.0