Bug #56558
closedIconUtility throws PHP-Warning if Spritemanager is not initialized
100%
Description
If the IconUtility function getSpriteIcon() is called without an initialized SpriteManager, the function generates an PHP Warning
Core: Error handler (FE): PHP Warning: in_array() expects parameter 2 to be array, null given in /[...]/typo3/sysext/backend/Classes/Utility/IconUtility.php line 601
This could occur e.g if parts of the backend are called via eId script.
Solution: Do a typecast.
Files
Updated by Gerrit Code Review about 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28065
Updated by Christian Kuhn about 10 years ago
sidenote: calling "parts of the backend via eID" is probably not a good idea ...
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28065
Updated by Gerrit Code Review about 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28065
Updated by Gerrit Code Review about 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28065
Updated by Caspar Stuebs about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 063f69741222f49e56f883bb4bf91a52cc274351.