From 0dd070a809a300d63e5607457fa949531f518613 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 14 Aug 2012 01:30:05 +0200 Subject: [PATCH] Only retrieve query results as an associative array, omitting the numeric index --- include.mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include.mysql.php b/include.mysql.php index 8bdc8e1..cd51e48 100644 --- a/include.mysql.php +++ b/include.mysql.php @@ -75,7 +75,7 @@ class CachedPDO extends PDO } $statement->execute(); - $result = $statement->fetchAll(); + $result = $statement->fetchAll(PDO::FETCH_ASSOC); mc_set($cache_hash, $result, $expiry);