[TYPO3-core] RFC: #16825: Fatal error in lang.php
Georg Ringer
mail at ringerge.org
Thu Dec 23 09:58:08 CET 2010
This is an SVN patch request.
Type: Bug, nobrainer
http://bugs.typo3.org/view.php?id=16825
Branches: trunk, 4-4, 4-3
Problem:
because of type hinting an fatal error can occur in EXT:lang/lang.php
problem is inside t3lib_div::readLLfile (called by $this->readLLfile)
which can give back either a filled array, an empty array or FALSE if
there was an error.
therefore the line
-----
t3lib_div::array_merge_recursive_overrule((array)$LOCAL_LANG, $llang);
-----
produces a crash because $llang can be boolean and not an array.
Solution:
Check if it is an array
To reproduce:
I don't really know how to reproduce because it happend after migrating
a site and forgetting to install tt_address. i can only guess that
somehow files were tried to be called. anyway the problem is simple to
explain and to fix
Kind regards,
Georg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16825-lang-array-error.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101223/859af53f/attachment-0001.txt>
More information about the TYPO3-team-core
mailing list