Fix null translations
This commit is contained in:
parent
3f9a4747f6
commit
7fa710b6d2
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ class Generator
|
||||||
$all_terms = $matches[1];
|
$all_terms = $matches[1];
|
||||||
foreach ($all_terms as $term)
|
foreach ($all_terms as $term)
|
||||||
{
|
{
|
||||||
|
if ($term == null)
|
||||||
|
continue;
|
||||||
$final_text = str_replace('[' . $term . ']', $this->translator->trans($term), $final_text);
|
$final_text = str_replace('[' . $term . ']', $this->translator->trans($term), $final_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue