Actions
Bug #56558
closedIconUtility throws PHP-Warning if Spritemanager is not initialized
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2014-03-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
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
Actions