diff options
Diffstat (limited to 'search/index.php')
-rw-r--r-- | search/index.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/search/index.php b/search/index.php index 2a1a40a5b..30ed459e8 100644 --- a/search/index.php +++ b/search/index.php @@ -32,8 +32,11 @@ $owner_guid = explode(",",$owner_guid);
}
- $body = list_entities_from_metadata($md_type, $tag, $objecttype, $subtype, $owner_guid, 10, false);
- $body = elgg_view_layout('one_column',$body);
+ if (!empty($tag)) {
+ $body = elgg_view_title(elgg_echo('searchtitle'),$tag);
+ $body .= list_entities_from_metadata($md_type, $tag, $objecttype, $subtype, $owner_guid, 10, false);
+ $body = elgg_view_layout('one_column',$body);
+ }
page_draw(sprintf(elgg_echo('searchtitle'),$tag),$body);
|