diff --git a/Classes/Domain/Index/TcaIndexer/PagesIndexer.php b/Classes/Domain/Index/TcaIndexer/PagesIndexer.php index 558af09..d666410 100644 --- a/Classes/Domain/Index/TcaIndexer/PagesIndexer.php +++ b/Classes/Domain/Index/TcaIndexer/PagesIndexer.php @@ -74,7 +74,7 @@ class PagesIndexer extends TcaIndexer $content = $this->fetchContentForPage($record['uid']); if ($content !== []) { $record['content'] = $content['content']; - $record['media'] = array_unique(array_merge($record['media'], $content['images'])); + $record['media'] = array_values(array_unique(array_merge($record['media'], $content['images']))); } parent::prepareRecord($record); }