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 #1

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

Actions #2

Updated by Christian Kuhn about 10 years ago

sidenote: calling "parts of the backend via eID" is probably not a good idea ...

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Caspar Stuebs about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF