]> granicus.if.org Git - ejabberd/commitdiff
fix call to get_session_pid with binary arguments
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 27 Aug 2013 12:46:22 +0000 (14:46 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 27 Aug 2013 12:46:22 +0000 (14:46 +0200)
src/mod_pubsub.erl
src/mod_pubsub_odbc.erl

index ba9870d9d2c161d4b28870c95ab1908397197eaa..573fbb835d207b0d350ec2a3745af84c53e77b75 100644 (file)
@@ -4443,7 +4443,7 @@ broadcast_stanza({LUser, LServer, LResource}, Publisher, Node, NodeId, Type, Nod
        [] -> 
            case user_resources(LUser, LServer) of
                [Resource|_] -> Resource;
-               _ -> ""
+               _ -> <<>>
            end;
        _ ->
            LResource
index 9874281d08418a92005c3024d56d53606fd8ba2c..08ae9fe45a956e492350f78ccf2456cee71e446a 100644 (file)
@@ -4062,7 +4062,7 @@ broadcast_stanza({LUser, LServer, LResource}, Publisher, Node, NodeId, Type, Nod
        [] -> 
            case user_resources(LUser, LServer) of
                [Resource|_] -> Resource;
-               _ -> ""
+               _ -> <<>>
            end;
        _ ->
            LResource