Project

General

Profile

Actions

Bug #98145

closed

PHP Warning: Undefined array key "config"

Added by JAKOTA Design Group GmbH almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
SEO
Start date:
2022-08-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

Hi,

I've written my own DataProvider which does not need a config.
Providing an empty config via TS like


plugin.tx_seo {
  config {
    xmlSitemap {
      sitemaps {
        entries {
          provider = VENDOR\Project\Seo\EntryXmlSitemapDataProvider
          config {
          }
        }
      }
    }
  }
}

seem error prone.

/typo3/sysext/seo/Classes/XmlSitemap/XmlSitemapRenderer.php

Line 96 is

(array)$config['config']

but should be

(array)($config['config'] ?? [])

Thanks

Actions

Also available in: Atom PDF