FIX: Add missing $totalCount variable

This commit is contained in:
Loz Calver 2017-11-25 21:40:01 +00:00 committed by GitHub
parent d110b92fc8
commit 390cb09928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'];