mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
PDO fetch fix.
This commit is contained in:
parent
fd0a0df664
commit
e71c32e696
@ -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()'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user