#376408 by pwolanin and ajevans85: Stop phantom () appearing in search results.

merge-requests/26/head
Angie Byron 2009-03-27 00:16:16 +00:00
parent eecab1083a
commit 0f95dd45a9
1 changed files with 3 additions and 1 deletions

View File

@ -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>';
}
}
/**