Issue Bug Closed

#98145PHP Warning: Undefined array key "config"

JAKOTA Design Group GmbH 08/15/22, 09:23 updated 10/04/22, 14:18

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

Reviews 2