Issue Bug Closed

#24401Fatal error in lang.php

Georg Ringer 12/23/10, 09:53 updated 10/02/18, 12:21

Description

because of type hinting an fatal error can occur in EXT:lang/lang.php

problem is inside t3lib_div::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 is boolean and not an array.

solution: check if it is an array

(issue imported from #M16825)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.