]> granicus.if.org Git - ejabberd/commitdiff
apply pull request #250 to pubsub_odbc as well
authorChristophe Romain <christophe.romain@process-one.net>
Mon, 21 Jul 2014 15:14:59 +0000 (17:14 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Mon, 21 Jul 2014 15:14:59 +0000 (17:14 +0200)
src/mod_pubsub_odbc.erl

index 45c30a11baad177e5b55e31bb0bae02b42ff30c2..a5e05a8d7647b0c938884eef7bd9953d2474713a 100644 (file)
@@ -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]),