aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nodetree_tree_odbc.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nodetree_tree_odbc.erl b/src/nodetree_tree_odbc.erl
index 469be35d5..1cc45cfb5 100644
--- a/src/nodetree_tree_odbc.erl
+++ b/src/nodetree_tree_odbc.erl
@@ -362,9 +362,13 @@ raw_to_node(Host, [Node, Parent, Type, NodeIdx]) ->
StdOpts, DbOpts);
_ -> []
end,
+ Parents = case Parent of
+ <<>> -> [];
+ _ -> [Parent]
+ end,
#pubsub_node{nodeid =
{Host, Node},
- parents = [Parent],
+ parents = Parents,
id = NodeIdx, type = Type, options = Options}.
% @spec (NodeRecord) -> ok | {error, Reason}