24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-30 23:02:00 +02:00

Fix warning from last commit

This commit is contained in:
Paweł Chmielowski 2013-03-19 19:09:16 +01:00
parent 418baf4fa6
commit 4b7c74415f

View File

@ -374,7 +374,8 @@ format_args(Args, ArgsFormat) ->
format_arg({array, Elements},
{list, {ElementDefName, ElementDefFormat}})
when is_list(Elements) ->
lists:map(fun ({struct, [{ElementDefName, ElementValue}]}) ->
lists:map(fun ({struct, [{ElementName, ElementValue}]}) when
ElementDefName == ElementName ->
format_arg(ElementValue, ElementDefFormat)
end,
Elements);