diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2009-08-27 09:32:40 +0000 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2009-08-27 09:32:40 +0000 |
commit | 2425c51ae43982601213f988500d87bff69beb29 (patch) | |
tree | a43e2e62323b3f3db302f9a79453d178381a5ae1 /src/mod_pubsub/mod_pubsub_odbc.erl | |
parent | fix old api in node_flat_odbc (diff) |
fix issue with RSM filtering
SVN Revision: 2548
Diffstat (limited to 'src/mod_pubsub/mod_pubsub_odbc.erl')
-rw-r--r-- | src/mod_pubsub/mod_pubsub_odbc.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mod_pubsub/mod_pubsub_odbc.erl b/src/mod_pubsub/mod_pubsub_odbc.erl index aa6b1ece3..31ff479c6 100644 --- a/src/mod_pubsub/mod_pubsub_odbc.erl +++ b/src/mod_pubsub/mod_pubsub_odbc.erl @@ -1093,10 +1093,9 @@ iq_pubsub(Host, ServerHost, From, IQType, SubEl, Lang, Access, Plugins) -> iq_pubsub_owner(Host, ServerHost, From, IQType, SubEl, Lang) -> {xmlelement, _, _, SubEls} = SubEl, - NoRSM = lists:filter(fun({xmlelement, Name, _, _}) -> - Name == "set" - end, SubEls), - Action = xml:remove_cdata(SubEls) -- NoRSM, + Action = lists:filter(fun({xmlelement, "set", _, _}) -> false + (_) -> true + end, xml:remove_cdata(SubEls)), case Action of [{xmlelement, Name, Attrs, Els}] -> Node = case Host of |