BUGFIX: Don't break if no more records exist

This commit is contained in:
Daniel Siepmann 2017-01-26 14:57:23 +01:00
parent 8e062d6e42
commit 8bea39217e
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -120,8 +120,11 @@ class TcaIndexer implements IndexerInterface
'',
(int) $offset . ',' . (int) $limit
);
$this->tcaTableService->filterRecordsByRootLineBlacklist($records);
if ($records === null) {
return null;
}
$this->tcaTableService->filterRecordsByRootLineBlacklist($records);
foreach ($records as &$record) {
$this->tcaTableService->prepareRecord($record);
}