25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Don't return undefined from ejabberd_config:get_myhosts()

This commit is contained in:
Paweł Chmielowski 2018-01-29 11:05:59 +01:00
parent 719dfe12f6
commit dc601610b6

View File

@ -1057,7 +1057,12 @@ get_version() ->
-spec get_myhosts() -> [binary()].
get_myhosts() ->
get_option(hosts).
case get_option(hosts) of
V when is_list(V) ->
V;
_ ->
[]
end.
-spec get_mylang() -> binary().