mirror of https://github.com/Icinga/icinga2.git
parent
838f7ca526
commit
43ff15cf86
|
@ -39,8 +39,11 @@ void HttpHandler::Register(const Url::Ptr& url, const HttpHandler::Ptr& handler)
|
||||||
node->Set("children", children);
|
node->Set("children", children);
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary::Ptr sub_node = new Dictionary();
|
Dictionary::Ptr sub_node = children->Get(elem);
|
||||||
children->Set(elem, sub_node);
|
if (!sub_node) {
|
||||||
|
sub_node = new Dictionary();
|
||||||
|
children->Set(elem, sub_node);
|
||||||
|
}
|
||||||
|
|
||||||
node = sub_node;
|
node = sub_node;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue