From: Andrew Dolgov Date: Tue, 1 Sep 2009 10:30:51 +0000 (+0400) Subject: properly allow article to be expanded in CDM mode when article excerpt is blank X-Git-Tag: 1.3.4~45 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c9efd838a930976b8e2dd87ad6ce065d037bf6a0;p=tt-rss.git properly allow article to be expanded in CDM mode when article excerpt is blank --- diff --git a/functions.php b/functions.php index 044b0162..3249a5d7 100644 --- a/functions.php +++ b/functions.php @@ -5229,7 +5229,14 @@ print "
"; - print truncate_string(strip_tags($line["content_preview"]), 100); + + $content_preview = trim(truncate_string(strip_tags($line["content_preview"]), 100)); + + if (strlen($content_preview) != 0) { + print $content_preview; + } else { + print __('Click to expand article'); + } print "
"; }