From c48776586093e178c9ea94183e44b978456bebf1 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 31 Aug 2018 05:10:53 +0000 Subject: [PATCH] Where do these notices hide? Now one is removed --- langfilter/langfilter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/langfilter/langfilter.php b/langfilter/langfilter.php index b89c32df..fe413d63 100644 --- a/langfilter/langfilter.php +++ b/langfilter/langfilter.php @@ -163,6 +163,10 @@ function langfilter_prepare_body_content_filter(App $a, &$hook_data) break; } + if (empty($iso2)) { + return; + } + $lang = Text_LanguageDetect_ISO639::code2ToName($iso2); } else { $opts = $hook_data['item']['postopts']; -- 2.39.5