taxonomy_context_show_children() produces output containing empty <ul> tags.

Changing

$output = "<ul>\n";
$children = taxonomy_context_term_children($tid);
if ($children) {

to

$children = taxonomy_context_term_children($tid);
if (!$children) {
  return;
}
$output = "<ul>\n";
if ($children) {

fixes the problem.

Comments

chrisschaub’s picture

Version: 4.5.x-1.x-dev » 5.x-1.x-dev

Ok, just bumping this up again. It causes html validation errors since you have empty ul tags. Any chance for a patch? Thanks.

nedjo’s picture

Version: 5.x-1.x-dev » 4.5.x-1.x-dev
Status: Active » Closed (fixed)

4.5 is no longer actively maintained and the referenced function doesn't exist in HEAD or 5.x.

nedjo’s picture

Or, if this is an issue in the 5.x version, please confirm that this is the case and provide more details, change the issue title accordingly, and reopen the issue.