Avoid crash when performing admin action

This commit is contained in:
Evgeniy Khramtsov 2011-09-09 12:34:06 +10:00
parent b8969f68e0
commit e432ff58f9
1 changed files with 2 additions and 2 deletions

View File

@ -2496,7 +2496,7 @@ find_changed_items(UJID, UAffiliation, URole,
"Jabber ID ~s is invalid"), [S]),
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
J ->
{value, J}
{value, [J]}
end;
_ ->
case xml:get_attr("nick", Attrs) of
@ -2511,7 +2511,7 @@ find_changed_items(UJID, UAffiliation, URole,
[N]),
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
J ->
{value, J}
{value, [J]}
end;
_ ->
{error, ?ERR_BAD_REQUEST}