MINOR: Replaced DataObjectSet with ArrayList in MySQLDatabase->searchEngine().

This commit is contained in:
ajshort 2011-05-06 07:08:33 +10:00
parent 2294ef5820
commit a75abd5cd7

View File

@ -825,14 +825,13 @@ class MySQLDatabase extends SS_Database {
// Get records
$records = DB::query($fullQuery);
foreach($records as $record)
$objects = array();
foreach($records as $record) {
$objects[] = new $record['ClassName']($record);
}
if(isset($objects)) $doSet = new ArrayList($objects);
else $doSet = new ArrayList();
$list = new PaginatedList($doSet);
$list = new PaginatedList(new ArrayList($objects));
$list->setPageStart($start);
$list->setPageLEngth($pageLength);
$list->setTotalItems($totalCount);