24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

Fix service_info options processing

This commit is contained in:
Evgeniy Khramtsov 2014-03-25 09:52:39 +04:00
parent 5c36c44689
commit 2150b10901

View File

@ -488,10 +488,10 @@ get_fields_xml(Host, Module) ->
lists:map(
fun(Opts) ->
Mods = proplists:get_value(modules, Opts, all),
Name = proplists:get_value(names, Opts, <<>>),
Name = proplists:get_value(name, Opts, <<>>),
URLs = proplists:get_value(urls, Opts, []),
{Mods, Name, URLs}
end, lists:flatten(L))
end, L)
end, []),
Fields_good = lists:filter(fun ({Modules, _, _}) ->
case Modules of