Commit 9f92df7f authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

[TASK] Fixes a warning, which occours if the override file is empty for a language

parent b21414e0
......@@ -101,10 +101,16 @@ class FileOverrideService extends FileBaseXMLService {
if (empty($langData)) {
continue;
}
foreach ($langData as $costKey => $constValue) {
if (isset($this->localLang[$lang][$costKey]) && $this->localLang[$lang][$costKey] !== $constValue) {
continue;
}
if (!is_array($this->localLang[$lang])) {
$this->localLang[$lang] = [];
}
$this->localLang[$lang][$costKey] = $constValue;
}
}
......
Markdown is supported
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