From: Christophe Romain Date: Mon, 21 Jul 2014 15:14:59 +0000 (+0200) Subject: apply pull request #250 to pubsub_odbc as well X-Git-Tag: 14.07~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=320abee110b39ad5f5c48d490957b87d480ac802;p=ejabberd apply pull request #250 to pubsub_odbc as well --- diff --git a/src/mod_pubsub_odbc.erl b/src/mod_pubsub_odbc.erl index 45c30a11b..a5e05a8d7 100644 --- a/src/mod_pubsub_odbc.erl +++ b/src/mod_pubsub_odbc.erl @@ -385,7 +385,7 @@ init_send_loop(ServerHost, State) -> init_plugins(Host, ServerHost, Opts) -> TreePlugin = jlib:binary_to_atom(<<(?TREE_PREFIX)/binary, - (gen_mod:get_opt(nodetree, Opts, fun(A) when is_list(A) -> A end, + (gen_mod:get_opt(nodetree, Opts, fun(A) when is_binary(A) -> A end, ?STDTREE))/binary, (?ODBC_SUFFIX)/binary>>), ?DEBUG("** tree plugin is ~p", [TreePlugin]),