Skip to content

Commit

Permalink
fix #134 undefined property subnodes
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Schultschik <[email protected]>
  • Loading branch information
svanschu committed Jun 20, 2024
1 parent 29a246d commit f9c2086
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private function removingDuplicates(&$nodes, &$links = array(), &$mlinks = array
if (empty($mlinks[$option][$view][$id])) {
$mlinks[$option][$view][$id] = true;
} else {
if (!isset($node->subnodes) && empty((array) ($node->subnodes))) {
if (!isset($node->subnodes) || empty((array) ($node->subnodes))) {
unset($nodes->$key);
}
}
Expand Down

0 comments on commit f9c2086

Please sign in to comment.