Skip to content

Commit

Permalink
discoverygarden#82: ignore otherlevel containers
Browse files Browse the repository at this point in the history
  • Loading branch information
ctgraham committed Jun 7, 2022
1 parent a2007b9 commit de5139a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/jstreebuilder.inc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ class JSTreeBuilder {
$list = $this->xpath->query($query, $node);
$roots = array();
foreach ($list as $component) {
$roots[] = $this->getComponentTree($component);
$root = $this->getComponentTree($component);
if ($root) {
$roots[] = $root;
}
}
return $roots;
}
Expand Down

0 comments on commit de5139a

Please sign in to comment.