mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
PDO fetch fix.
This commit is contained in:
@@ -333,7 +333,7 @@ class e_db_mysql
|
|||||||
{ // Need to get the total record count as well. Return code is a resource identifier
|
{ // 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
|
// 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);
|
$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()'];
|
$this->total_results = (int) $rc['FOUND_ROWS()'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user