Avoid warnings in addons (#639)
[friendica-addons.git/.git] / showmore / showmore.php
index e39acde..3673c95 100644 (file)
@@ -126,6 +126,8 @@ function showmore_prepare_body(\Friendica\App $a, &$hook_data)
        if (get_body_length($hook_data['html']) > $chars) {
                $found = true;
                $shortened = trim(showmore_cutitem($hook_data['html'], $chars)) . "...";
+       } else {
+               $found = false;
        }
 
        if ($found) {