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

Bernhard Kraft kraftb at kraftb.at
Wed Nov 16 10:55:52 CET 2005


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_content.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
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_getGlobal.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051116/f33ffcf8/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051116/f33ffcf8/attachment.pgp 


More information about the TYPO3-team-core mailing list