summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-28 04:14:48 +0100
committerAndrew Dolgov <[email protected]>2005-11-28 04:14:48 +0100
commitad3dee9113b47fe51165998bc307f2d47a852487 (patch)
treefc43398fbfcafec4c6bd74274339d88cd3b94d1b
parent9167e250e80d799648b3f9418d962ff3969371a0 (diff)
hide empty content preview
-rw-r--r--backend.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index f7c26df41..81f566b01 100644
--- a/backend.php
+++ b/backend.php
@@ -1089,7 +1089,9 @@
$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>";