mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-26 06:56:10 +01:00
BUGFIX: Don't index null records
* Check null beside false for db result.
This commit is contained in:
parent
8bea39217e
commit
350f906016
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class TcaIndexer implements IndexerInterface
|
||||||
. ' AND ' . $this->tcaTableService->getTableName() . '.uid = ' . (int) $identifier
|
. ' AND ' . $this->tcaTableService->getTableName() . '.uid = ' . (int) $identifier
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($record === false) {
|
if ($record === false || $record === null) {
|
||||||
throw new NoRecordFoundException(
|
throw new NoRecordFoundException(
|
||||||
'Record could not be fetched from database: "' . $identifier . '". Perhaps record is not active.',
|
'Record could not be fetched from database: "' . $identifier . '". Perhaps record is not active.',
|
||||||
1484225364
|
1484225364
|
||||||
|
|
Loading…
Reference in a new issue