Skip to content

Commit

Permalink
make sure o.o.documents can also be used as root
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Jul 20, 2018
1 parent df10564 commit 2326efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/org/openpsa/documents/handler/directory/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private function _tree_array_build(array $topic_array, midcom_db_topic $root_top
public function _handler_navigation($handler_id, array $args, array &$data)
{
$root_topic = $this->_topic;
while ($root_topic->get_parent()->component == $this->_component) {
while ($root_topic->up && $root_topic->get_parent()->component == $this->_component) {
$root_topic = $root_topic->get_parent();
}
$data['root_topic'] = $root_topic;
Expand Down

0 comments on commit 2326efe

Please sign in to comment.