mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-06 21:37:17 +02:00
Avoid crash when performing admin action
This commit is contained in:
parent
b8969f68e0
commit
e432ff58f9
|
@ -2496,7 +2496,7 @@ find_changed_items(UJID, UAffiliation, URole,
|
||||||
"Jabber ID ~s is invalid"), [S]),
|
"Jabber ID ~s is invalid"), [S]),
|
||||||
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
|
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
|
||||||
J ->
|
J ->
|
||||||
{value, J}
|
{value, [J]}
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
case xml:get_attr("nick", Attrs) of
|
case xml:get_attr("nick", Attrs) of
|
||||||
|
@ -2511,7 +2511,7 @@ find_changed_items(UJID, UAffiliation, URole,
|
||||||
[N]),
|
[N]),
|
||||||
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
|
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
|
||||||
J ->
|
J ->
|
||||||
{value, J}
|
{value, [J]}
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
{error, ?ERR_BAD_REQUEST}
|
{error, ?ERR_BAD_REQUEST}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user