Skip to content

Commit 45ac6ee

Browse files
authored
Merge pull request #8 from franzholz/develop
An empty target must be dealt with
2 parents 1a581d2 + 319351b commit 45ac6ee

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Classes/Utility/Convert.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ protected function generateFileContent(string $xmlFile, string $langKey): string
205205
foreach ($LOCAL_LANG[$langKey] as $key => $data) {
206206
if (is_array($data)) {
207207
$source = $data[0]['source'];
208-
$target = $data[0]['target'];
208+
if (isset($data[0]['target'])) {
209+
$target = $data[0]['target'];
210+
} else {
211+
$target = '';
212+
}
209213
} else {
210214
$source = $LOCAL_LANG['default'][$key];
211215
$target = $data;

0 commit comments

Comments
 (0)