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

Susanne Moog info at susannemoog.de
Wed Jun 16 18:28:55 CEST 2010


On 16.06.2010 10:19, Steffen Müller wrote:
> 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.

+1 by reading

susanne


More information about the TYPO3-team-core mailing list