aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2013-07-04 15:13:21 +0200
committerChristophe Romain <christophe.romain@process-one.net>2013-07-04 15:13:21 +0200
commit0266207e9d4041deb3f0abca2583984b90996824 (patch)
tree88a79ab53c6115e34e9b81c423980c5851a15271 /src
parentimprove pubsub odbc use of i2l (diff)
fix pubsub unsubscription without SubId on odbc
Diffstat (limited to 'src')
-rw-r--r--src/node_hometree_odbc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_hometree_odbc.erl b/src/node_hometree_odbc.erl
index 6d7535e0b..090fae513 100644
--- a/src/node_hometree_odbc.erl
+++ b/src/node_hometree_odbc.erl
@@ -383,7 +383,7 @@ unsubscribe_node(NodeId, Sender, Subscriber, SubId) ->
{Affiliation, Subscriptions} =
select_affiliation_subscriptions(NodeId, SubKey),
SubIdExists = case SubId of
- [] -> false;
+ <<>> -> false;
List when is_binary(List) -> true;
_ -> false
end,