mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
parent
793ca45dda
commit
ee0a8d2966
@ -518,5 +518,5 @@ deserialize([{_, S}|T], #xmlel{children = Els} = El, Acc) when is_binary(S) ->
|
|||||||
deserialize(T, El#xmlel{children = [{xmlcdata, S}|Els]}, Acc);
|
deserialize(T, El#xmlel{children = [{xmlcdata, S}|Els]}, Acc);
|
||||||
deserialize([{_, L}|T], #xmlel{children = Els} = El, Acc) when is_list(L) ->
|
deserialize([{_, L}|T], #xmlel{children = Els} = El, Acc) when is_list(L) ->
|
||||||
deserialize(T, El#xmlel{children = deserialize(L) ++ Els}, Acc);
|
deserialize(T, El#xmlel{children = deserialize(L) ++ Els}, Acc);
|
||||||
deserialize([], El, Acc) ->
|
deserialize([], #xmlel{children = Els} = El, Acc) ->
|
||||||
[El|Acc].
|
[El#xmlel{children = lists:reverse(Els)}|Acc].
|
||||||
|
Loading…
Reference in New Issue
Block a user