[BUGFIX] Fix PHP Catchable Fatal Error in t3lib_iconWorks
authorSven Luzar <sven.luzar@gmx.de>
Mon, 28 Mar 2011 11:03:02 +0000 (13:03 +0200)
committerOliver Hader <oliver@typo3.org>
Thu, 31 Mar 2011 22:24:59 +0000 (00:24 +0200)
commit480296906a535bfe21c271654bd99b006c289c05
treebaf18e23d3629ec7a78753f94f04262091d5b4a4
parentd6b86c14b9a7c5695ed62595ab0215b540069f7c
[BUGFIX] Fix PHP Catchable Fatal Error in t3lib_iconWorks

The hook in t3lib_iconWorks::mapRecordTypeToSpriteIconName() passes an
array to call a user function, but the method t3lib_div::callUserFunction
expects a variable being passed by reference.

Assigning the array to a variable fixes this error.

Thanks to Haymo Meran (Gentics) for sponsoring this fix with 80 beers
at the bug auction at T3BOARD11.

Change-Id: Ib0c0b2bd504fdbc346e8f70009bb60e82a66d8b0
Resolves: #25402
Reviewed-on: http://review.typo3.org/1378
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/class.t3lib_iconworks.php