mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
FIX: Add missing $totalCount variable
This commit is contained in:
parent
d110b92fc8
commit
390cb09928
@ -356,6 +356,8 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
|
||||
// Get records
|
||||
$records = $this->preparedQuery($fullQuery, $tableParameters);
|
||||
|
||||
$totalCount = 0;
|
||||
foreach($records as $record){
|
||||
$objects[] = Injector::inst()->createWithArgs($record['ClassName'], array($record));
|
||||
$totalCount = $record['_fullcount'];
|
||||
|
Loading…
Reference in New Issue
Block a user