Project

General

Profile

Actions

Bug #24401

closed

Fatal error in lang.php

Added by Georg Ringer almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-12-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

lang-array-error.patch (448 Bytes) lang-array-error.patch Administrator Admin, 2010-12-23 09:53
Actions #1

Updated by Jigal van Hemert almost 14 years ago

Committed to
trunk in rev: 9884
4-4 in rev: 9885
4-3 in rev: 9886
4-2 in rev: 9887

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF