summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-27 00:16:16 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-27 00:16:16 +0000
commit0f95dd45a94d00723f3ecd6483f3a6366cc7dbe9 (patch)
tree92a0d9933ac8f6e9bf5991e14e7ec0a06bfcee14 /modules
parenteecab1083a718ccf18e6451df6108803f4d0c1be (diff)
downloadbrdo-0f95dd45a94d00723f3ecd6483f3a6366cc7dbe9.tar.gz
brdo-0f95dd45a94d00723f3ecd6483f3a6366cc7dbe9.tar.bz2
#376408 by pwolanin and ajevans85: Stop phantom () appearing in search results.
Diffstat (limited to 'modules')
-rw-r--r--modules/search/search.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index 21a3657df..bc3ef5648 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -646,7 +646,9 @@ function search_node_update_index($node) {
while ($link = db_fetch_object($result)) {
$output[] = $link->caption;
}
- return '<a>(' . implode(', ', $output) . ')</a>';
+ if (count($output)) {
+ return '<a>(' . implode(', ', $output) . ')</a>';
+ }
}
/**