aboutsummaryrefslogtreecommitdiff
path: root/search/index.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 19:26:04 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 19:26:04 +0000
commit7589d09cf808a2f4106ac6aac30dcea079831726 (patch)
tree009fc1a2df9ea3a06744fab034c4ade8a5c3ca42 /search/index.php
parenta4e2d4db8daafd741583c2672fc54eac936a4157 (diff)
downloadelgg-7589d09cf808a2f4106ac6aac30dcea079831726.tar.gz
elgg-7589d09cf808a2f4106ac6aac30dcea079831726.tar.bz2
Sanitising search
git-svn-id: https://code.elgg.org/elgg/trunk@1197 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'search/index.php')
-rw-r--r--search/index.php7
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);