Bug #98145
closedPHP Warning: Undefined array key "config"
100%
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
Updated by Oliver Hader about 2 years ago
- Status changed from New to Accepted
Seems to be reasonable...
Updated by Gerrit Code Review about 2 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75529
Updated by Gerrit Code Review about 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75529
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75530
Updated by Oliver Hader about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 34be7c84da9a0d02aa16e27f94a66107ec97c34f.