From 86f6de74fb64a1998e3ef7ddd7637f2d4229cc36 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 2 Apr 2011 18:50:07 +0000 Subject: Refs #2994 added group search fix from 1.7 branch to trunk git-svn-id: http://code.elgg.org/elgg/trunk@8916 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/search_hooks.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/search/search_hooks.php') diff --git a/mod/search/search_hooks.php b/mod/search/search_hooks.php index ae8433409..428d6f700 100644 --- a/mod/search/search_hooks.php +++ b/mod/search/search_hooks.php @@ -93,11 +93,11 @@ function search_groups_hook($hook, $type, $value, $params) { // add the volatile data for why these entities have been returned. foreach ($entities as $entity) { - $description = search_get_highlighted_relevant_substrings($entity->description, $query); - $entity->setVolatileData('search_matched_title', $description); - $name = search_get_highlighted_relevant_substrings($entity->name, $query); - $entity->setVolatileData('search_matched_description', $name); + $entity->setVolatileData('search_matched_title', $name); + + $description = search_get_highlighted_relevant_substrings($entity->description, $query); + $entity->setVolatileData('search_matched_description', $description); } return array( -- cgit v1.2.3