From 11ed046baa3e2936a5ba85194cf0246addd943a5 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Feb 2011 04:23:14 +0000 Subject: fixed display issue when a bookmark has no description text git-svn-id: http://code.elgg.org/elgg/trunk@8317 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/views/default/object/bookmarks.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/bookmarks/views/default/object') diff --git a/mod/bookmarks/views/default/object/bookmarks.php b/mod/bookmarks/views/default/object/bookmarks.php index 7e7c20af4..f28a45619 100644 --- a/mod/bookmarks/views/default/object/bookmarks.php +++ b/mod/bookmarks/views/default/object/bookmarks.php @@ -85,6 +85,9 @@ HTML; $url = $bookmark->address; $display_text = $url; $excerpt = elgg_get_excerpt($bookmark->description); + if ($excerpt) { + $excerpt = " - $excerpt"; + } if (strlen($url) > 25) { $bits = parse_url($url); @@ -100,7 +103,7 @@ HTML; 'text' => $display_text ))); - $content = "$link - $excerpt"; + $content = "$link{$excerpt}"; $params = array( 'entity' => $bookmark, -- cgit v1.2.3