Issue Bug Closed

#23306DB browser is unusable

Alienor.net 07/29/10, 18:57 updated 08/12/10, 13:10

Description

If you click on DB browser icon from, for example, the “db mount” field of a BE Group record, the usual page tree is replaced with the following error :

t3lib_error_Exception
PHP Catchable Fatal Error: Argument 2 passed to t3lib_iconWorks::getSpriteIconForRecord() must be an array, null given, called in […]/typo3/class.browse_links.php on line 1922 and defined in […]/t3lib/class.t3lib_iconworks.php line 735

This was introduced by the patch to the bug 14880 that added array type hinting to the second argument of getSpriteIconForRecord() method.
As no real record is found when $this->expandPage = 0 (the root page – which is selected by default), a null value get passed to the method, hence the error.
Since the selectable icon is not needed for the root page, the new patch adds a condition that checks if a valid record was found before calling the getSpriteIconForRecord() method and related code. TYPO3 4.4 and the trunk are concerned.
(issue imported from #M15292)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.