From e71c32e696f4adf028b6f013ef9d72e6375b6214 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 8 May 2013 05:04:44 -0700 Subject: [PATCH] PDO fetch fix. --- e107_handlers/mysql_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index 8d8aa1adc..0cf9668b2 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -333,7 +333,7 @@ class e_db_mysql { // Need to get the total record count as well. Return code is a resource identifier // Have to do this before any debug action, otherwise this bit gets messed up $fr = ($this->pdo) ? $this->mySQLaccess->query('SELECT FOUND_ROWS()') : mysql_query('SELECT FOUND_ROWS()', $this->mySQLaccess); - $rc = ($this->pdo) ? $this->mySQLaccess->fetch() : mysql_fetch_array($fr); + $rc = ($this->pdo) ? $this->fetch() : mysql_fetch_array($fr); $this->total_results = (int) $rc['FOUND_ROWS()']; }