diff --git a/bundle/EventListener/ContentProxyTranslateListener.php b/bundle/EventListener/ContentProxyTranslateListener.php index 3b2973a..10c5f1f 100644 --- a/bundle/EventListener/ContentProxyTranslateListener.php +++ b/bundle/EventListener/ContentProxyTranslateListener.php @@ -70,6 +70,9 @@ public function translate(ContentProxyTranslateEvent $event): void $fromLanguageCode = $event->getFromLanguageCode(); $toLanguageCode = $event->getToLanguageCode(); + if (!($fromLanguageCode && $toLanguageCode)) { + return; + } $contentDraft = $this->translator->getTranslatedContent( $fromLanguageCode,