diff --git a/src/module-elasticsuite-indices/Model/IndexStatusProvider.php b/src/module-elasticsuite-indices/Model/IndexStatusProvider.php index 74b1e140f..6ca065186 100644 --- a/src/module-elasticsuite-indices/Model/IndexStatusProvider.php +++ b/src/module-elasticsuite-indices/Model/IndexStatusProvider.php @@ -117,6 +117,11 @@ public function getIndexStatus($indexName, $alias): string */ private function isRebuilding(string $indexName, $indexDate): bool { + if ($indexDate === false) { + // If $indexDate is false, we cannot rebuild. + return false; + } + if (!empty($this->workingIndexers)) { foreach (array_keys($this->workingIndexers) as $indexKey) { if (strpos($indexName, $indexKey) !== false) {