Commit 3b526e83 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Use values for link types

With #92715 the structure of the link types array
was unified to always use the types as array values.

This patch adjusts a forgotten place, which still
used the keys and therefore no longer worked
since the mentioned patch.

Resolves: #98335
Related: #92715
Releases: main, 11.5
Change-Id: I4b3badeba4ee436464a2dc6f2ceaf1a96212adf8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75809


Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 5ee75580
......@@ -216,7 +216,7 @@ class LinkAnalyzerResult
*/
protected function processLinkCounts(array $linkTypes): self
{
foreach (array_keys($linkTypes) as $linkType) {
foreach ($linkTypes as $linkType) {
if (!isset($this->newBrokenLinkCounts[$linkType])) {
$this->newBrokenLinkCounts[$linkType] = 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment