From 3c3c149e5a73bc19dd0803fe09eb41c7d6b90cb0 Mon Sep 17 00:00:00 2001 From: Darko Date: Thu, 11 Sep 2014 14:47:28 +0200 Subject: [PATCH] Changed the fetch type in db.php --- lib/copy_this/www/lib/framework/db.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/copy_this/www/lib/framework/db.php b/lib/copy_this/www/lib/framework/db.php index 7c5ef07a7..7a9bbd6fc 100644 --- a/lib/copy_this/www/lib/framework/db.php +++ b/lib/copy_this/www/lib/framework/db.php @@ -665,9 +665,9 @@ class DB extends PDO * @param PDOStatement $result * @return array */ - public function getAssocArray(PDOStatement $result) + public function getAssocArray($result) { - return $result->fetch(); + return $result->fetchall(PDO::FETCH_ASSOC); } /** @@ -676,7 +676,7 @@ class DB extends PDO * @param PDOStatement $result * @return int */ - public function getNumRows(PDOStatement $result) + public function getNumRows($result) { return $result->rowCount(); }