25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-15 15:19:20 +02:00

fix pubsub unsubscription without SubId on odbc

This commit is contained in:
Christophe Romain 2013-07-04 15:13:21 +02:00
parent 60600c341e
commit 0266207e9d

View File

@ -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,