[TYPO3-core] RFC #14222: Notice undefined index in tslib_pibase.php

Fabien Udriot fabien.udriot at ecodev.ch
Fri Apr 30 17:26:52 CEST 2010


Daniel Huf has done a new version of the patch: "isset" is replace by 
"!empty".

Thus, it will prevent to have an empty value.

+1 by reading
+1 by testing: done on configuration with "Notice" enabled.

Fb.

On 4/29/10 9:55 AM, "Martin Müller" wrote:
> This is an SVN patch request.
>
> Type: cleanup
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=14222
>
> Branches:  trunk
>
> Problem:
> Get a notice if TypoScript parameter not set.
>
> Notice: Undefined index: language_alt in /typo3_src-4.3.3/typo3/sysext/cms/tslib/class.tslib_pibase.php on line 223
>
> It is a missing value of $GLOBALS['TSFE']->config['config']['language_alt']
>
> Solution:
>
> Correct this to:
> if (isset($GLOBALS['TSFE']->config['config']['language_alt']))
>
>
> Notes: No
>
> Regards Martin

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_14222_for_trunk_v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100430/14206fed/attachment.asc>


More information about the TYPO3-team-core mailing list