Project

General

Profile

Actions

Bug #56558

closed

IconUtility throws PHP-Warning if Spritemanager is not initialized

Added by Caspar Stuebs about 10 years ago. Updated over 5 years ago.

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

IconUtility.diff (882 Bytes) IconUtility.diff Caspar Stuebs, 2014-03-04 23:07

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #48882: Iconworks PHP-WarningClosed2013-06-05

Actions
Actions

Also available in: Atom PDF