mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-23 17:36:09 +01:00
[BUGFIX] Make sure the while loop is not closed when filterRecordsByRootLineBlacklist() returns no results
This commit is contained in:
parent
7566bf93d5
commit
3f5273f0fe
1 changed files with 4 additions and 2 deletions
|
@ -149,8 +149,10 @@ abstract class AbstractIndexer implements IndexerInterface
|
|||
$offset = 0;
|
||||
$limit = $this->getLimit();
|
||||
|
||||
while (($records = $this->getRecords($offset, $limit)) !== []) {
|
||||
yield $records;
|
||||
while (($records = $this->getRecords($offset, $limit)) !== null) {
|
||||
if (!empty($records)) {
|
||||
yield $records;
|
||||
}
|
||||
$offset += $limit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue