aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_admin_extra.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl
index 41f05e5aa..c5060f088 100644
--- a/src/mod_admin_extra.erl
+++ b/src/mod_admin_extra.erl
@@ -1332,7 +1332,10 @@ srg_list(Host) ->
lists:sort(mod_shared_roster:list_groups(Host)).
srg_get_info(Group, Host) ->
- Opts = mod_shared_roster:get_group_opts(Host,Group),
+ Opts = case mod_shared_roster:get_group_opts(Host,Group) of
+ Os when is_list(Os) -> Os;
+ error -> []
+ end,
[{io_lib:format("~p", [Title]),
io_lib:format("~p", [Value])} || {Title, Value} <- Opts].