[TYPO3-core] RFC #13874: NULL reference when using hook in class.t3lib_utility_client.php

Steffen Müller typo3 at t3node.com
Wed Jun 16 10:19:51 CEST 2010


Hi,

this is a SVN patch request.

Type: Bugfix, nobrainer

Bugtracker references:
http://bugs.typo3.org/view.php?id=13874

Branches:
Trunk, 4_3

Problem:
When using the hooks in getBrowserInfo() and getDeviceType(), an error
occurs when calling

t3lib_div::callUserFunction($hookFunction, $hookParameters, NULL);

The third parameter has to be passed by reference. The attached patch
will do that:

$null = NULL;
t3lib_div::callUserFunction($hookFunction, $hookParameters, $null);

Solution:
Add $null and pass it as a reference for the third parameter.


-- 
cheers,
Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13874.patch
Type: text/x-patch
Size: 985 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100616/6a0c1c94/attachment.bin>


More information about the TYPO3-team-core mailing list