[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:44 +0000 (00:24 +0200)
commit191aa8ce51375402f00c8cf7c674702912517c20
tree14e06133b5ba2ea7edf832bfc7e81aeab89e7d48
parentbe01f429e1ac914b04f5bc07dbcf4601dffb06e4
[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: I445ae05aa79913cb152da06cc66941db3fdf9227
Resolves: #25402
Reviewed-on: http://review.typo3.org/1290
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/class.t3lib_iconworks.php