[TYPO3-core] RFC: cObj->getGlobal bug fix

Kasper Skårhøj kasper2005 at typo3.com
Mon Nov 21 14:21:28 CET 2005


+1 if works on php4

On Wednesday 16 November 2005 10:55, Bernhard Kraft wrote:
> Hello,
>
> This is a CVS patch request
>
> Type: Bugfix (PHP5)/Feature request
>
> Description:
> When a TS like:
> -----
> lib.userlastname = TEXT
> lib.userlastname.data = global : TSFE | fe_user | user | name
> lib.userlastname.insertData = 1
> -----
> gets used to display the logged in User name (of course contained in a
> COA_INT because of caching) this didn't work as expected in PHP4 (Just
> nothing got displayed). With PHP5 you can even produce error message like
> the following one:
> ---------
> Fatal error: Cannot use object of type tslib_fe as array in
> /home/kraftb/www/TYPO3core.getGlobal/typo3/sysext/cms/tslib/class.tslib_con
>tent.php on line 4830 ---------
>
> Solution:
> Check wheter the actually processed variable is an object or an array.
>
> Branches: HEAD
>
>
> Files:
> bug_getGlobal.patch
>
>
> greets,
> Bernhard

-- 
- kasper

-----------------
Think future, not feature



More information about the TYPO3-team-core mailing list