From c846b6aa21e8082940935357eb01e8bd9bba08f0 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Wed, 3 Jan 2018 21:04:57 +0100 Subject: [PATCH] gui: pdo fetch should exclude numbered indexes in fetched rows Signed-off-by: Janos SUTO --- webui/system/database/mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/system/database/mysql.php b/webui/system/database/mysql.php index 6042e739..f3a1895c 100644 --- a/webui/system/database/mysql.php +++ b/webui/system/database/mysql.php @@ -51,7 +51,7 @@ class MySQL { $this->affected = $s->rowCount(); - $R = $s->fetchAll(); + $R = $s->fetchAll(PDO::FETCH_ASSOC); while(list ($k, $v) = each($R)){ $data[$i] = $v;