Skip to content

Commit

Permalink
[BUGFIX] Delete index documents without available site
Browse files Browse the repository at this point in the history
Resolves: #3769
Releases: main, 11.5
Ports: #3770
  • Loading branch information
dkd-kaehm committed Sep 11, 2023
1 parent 01a4c6f commit 3159f17
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ protected function deleteIndexDocuments(string $table, int $uid, int $language =
foreach ($indexQueueItems as $indexQueueItem) {
try {
$site = $indexQueueItem->getSite();
} catch (InvalidArgumentException $e) {
} catch (InvalidArgumentException) {
$site = null;
}

if ($site === null) {
$this->queue->deleteItem($indexQueueItem->getType(), $indexQueueItem->getIndexQueueUid());
continue;
}
Expand Down

0 comments on commit 3159f17

Please sign in to comment.