X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=showmore%2Fshowmore.php;h=9a136c7f23eb319c183cbfd1c869493444896912;hb=18c632476dae13ac693b8af11afcb77baf44ae33;hp=096fd3f704b69e3f825daeffdc84048967e4beb0;hpb=bbdf6c1f78fbaa50673d5897e0aa9c483e021c56;p=friendica-addons.git diff --git a/showmore/showmore.php b/showmore/showmore.php index 096fd3f7..9a136c7f 100755 --- a/showmore/showmore.php +++ b/showmore/showmore.php @@ -34,8 +34,14 @@ function showmore_addon_settings(&$a,&$s) { if(!$chars) $chars = '1100'; - $s .= '
'; + $s .= ''; $s .= '

' . t('"Show more" Settings').'

'; + $s .= '
'; + $s .= ''; @@ -69,6 +75,11 @@ function showmore_addon_settings_post(&$a,&$b) { function get_body_length($body) { $string = trim($body); + // DomDocument doesn't like empty strings + if(! strlen($string)) { + return 0; + } + // We need to get rid of hidden tags (display: none) // Get rid of the warning. It would be better to have some valid html as input