diff --git a/Service/Generator.php b/Service/Generator.php index 1321b38..02da71d 100644 --- a/Service/Generator.php +++ b/Service/Generator.php @@ -137,6 +137,8 @@ class Generator $all_terms = $matches[1]; foreach ($all_terms as $term) { + if ($term == null) + continue; $final_text = str_replace('[' . $term . ']', $this->translator->trans($term), $final_text); }