Skip to content
Snippets Groups Projects
Commit 0f95dd45 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent eecab108
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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>';
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment