Commit 40ef3170 authored by damjan's avatar damjan
Browse files

[BUGFIX] Fixes error when default language constant is empty

This is the error message:
"Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/ on line 65"
parent c0b76a8b
......@@ -57,6 +57,12 @@ class FileBaseXLFService extends FileBaseService {
public function readFile() {
foreach ($this->localLang['default'] as $constant => $value) {
if (empty($value)) {
$this->localLang['default'][$constant] = '';
// convert all language values from utf-8 to the original charset
if (!Typo3Lib::isTypo3BackendInUtf8Mode()) {
$this->localLang = Typo3Lib::utf8($this->localLang, FALSE, array('default'));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment