]> git.wh0rd.org Git - tt-rss.git/commitdiff
hide empty content preview
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 28 Nov 2005 03:14:48 +0000 (04:14 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 28 Nov 2005 03:14:48 +0000 (04:14 +0100)
backend.php

index f7c26df4136e164ed71616a303cd6a6e7c651c3b..81f566b0154c669abadfc6e1cdce84f4912e7ee8 100644 (file)
                                        $content_preview = truncate_string(strip_tags($line["content_preview"]), 
                                                101);
                                                
-                                       print "<span class=\"contentPreview\"> - $content_preview</span>";
+                                       if ($content_preview) {
+                                               print "<span class=\"contentPreview\"> - $content_preview</span>";
+                                       }
                                }
 
                                print "</a>";