]> granicus.if.org Git - ejabberd/commitdiff
Fix hometree root check (#1070)
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 19 Apr 2016 13:18:32 +0000 (15:18 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 19 Apr 2016 13:18:32 +0000 (15:18 +0200)
src/nodetree_tree.erl

index ff8e3f64c6e22fc35cd3c5109b26ece169f7e671..69b50ff9f40f92e100e75f3e3ecf244a1a39d071 100644 (file)
@@ -160,7 +160,7 @@ create_node(Host, Node, Type, Owner, Options, Parents) ->
                            true;
                        [Parent | _] ->
                            case catch mnesia:read({pubsub_node, {Host, Parent}}) of
-                               [#pubsub_node{owners = [{[], Host, []}]}] ->
+                               [#pubsub_node{owners = [{<<>>, Host, <<>>}]}] ->
                                    true;
                                [#pubsub_node{owners = Owners}] ->
                                    lists:member(BJID, Owners);