mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Merge pull request #287 from vesvalo/master
Fix return value of mod_shared_roster:delete_group.
This commit is contained in:
commit
191eeed7c9
@ -501,7 +501,10 @@ delete_group(Host, Group, odbc) ->
|
|||||||
ejabberd_odbc:sql_query_t([<<"delete from sr_user where grp='">>,
|
ejabberd_odbc:sql_query_t([<<"delete from sr_user where grp='">>,
|
||||||
SGroup, <<"';">>])
|
SGroup, <<"';">>])
|
||||||
end,
|
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) ->
|
||||||
get_group_opts(Host, Group,
|
get_group_opts(Host, Group,
|
||||||
|
Loading…
Reference in New Issue
Block a user