From: Michael Date: Fri, 31 Aug 2018 05:10:53 +0000 (+0000) Subject: Where do these notices hide? Now one is removed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c48776586093e178c9ea94183e44b978456bebf1;p=friendica-addons.git Where do these notices hide? Now one is removed --- 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'];