Fix return value of mod_shared_roster:delete_group. Current one is not compatible with mod_admin_extra.

This commit is contained in:
vesvalo 2014-08-21 15:13:43 +04:00
parent 8e3a49d369
commit 01a3c1c2e1
1 changed files with 4 additions and 1 deletions

View File

@ -501,7 +501,10 @@ delete_group(Host, Group, odbc) ->
ejabberd_odbc:sql_query_t([<<"delete from sr_user where grp='">>,
SGroup, <<"';">>])
end,
ejabberd_odbc:sql_transaction(Host, F).
case ejabberd_odbc:sql_transaction(Host, F) of
{atomic,{updated,_}} -> {atomic, ok};
Res -> Res
end.
get_group_opts(Host, Group) ->
get_group_opts(Host, Group,