[BUGFIX] L10n PHP parser stores NULL for unknown key
authorXavier Perseguers <xavier@typo3.org>
Wed, 5 Sep 2012 07:06:40 +0000 (09:06 +0200)
committerXavier Perseguers <xavier@typo3.org>
Sun, 9 Sep 2012 19:59:30 +0000 (21:59 +0200)
commit530fe3bcbee4ccd2d5be287452d474b29ca92b08
tree9cc146c427c97d15c68d449ea56b29080a1a22e6
parent1c65fc9c3d5cda7d65eb09c51c6a7de404a587b5
[BUGFIX] L10n PHP parser stores NULL for unknown key

The PHP parser caches NULL instead of an array when the Backend
language is not available for a given extension using PHP array
localization files (e.g., tscobj with German "de").

This leads to PHP warning when reading the labels as NULL cannot
be used in a foreach statement.

Change-Id: I1678674ecfba71e04c9c13aed44dd7f0aa574cbc
Fixes: #40643
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/14360
Reviewed-by: Philipp Gampe
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/core/Classes/Localization/Parser/LocallangArrayParser.php