From cd391abf101e30ca6270a3e0ca1d828a0d855eff Mon Sep 17 00:00:00 2001 From: Willi Wehmeier Date: Tue, 28 Nov 2017 12:09:11 +0100 Subject: [PATCH] [BUGFIX] reset array_keys for record media --- Classes/Domain/Index/TcaIndexer/PagesIndexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }