]> git.mxchange.org Git - friendica-addons.git/commitdiff
Where do these notices hide? Now one is removed
authorMichael <heluecht@pirati.ca>
Fri, 31 Aug 2018 05:10:53 +0000 (05:10 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 31 Aug 2018 05:10:53 +0000 (05:10 +0000)
langfilter/langfilter.php

index b89c32dfeeb32b7e0d3c5f3aa882c5a23ac86762..fe413d63e00583de65ff713bfd8b7403c6447166 100644 (file)
@@ -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'];