]> granicus.if.org Git - ejabberd/commitdiff
fix get node configuration bug (Thanks to Brian Cully)
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 24 Jul 2009 20:09:25 +0000 (20:09 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 24 Jul 2009 20:09:25 +0000 (20:09 +0000)
SVN Revision: 2392

src/mod_pubsub/mod_pubsub.erl

index 3ad2e254e3bac6411cf4f9f29bd043cf97ce438a..c549c584cd574e33e1a14a4b8707701afbe51350 100644 (file)
@@ -3207,7 +3207,7 @@ max_items(Options) ->
 
 -define(NLIST_CONFIG_FIELD(Label, Var),
        ?STRINGMXFIELD(Label, "pubsub#" ++ atom_to_list(Var),
-                      [node_to_string(N) || N <- get_option(Options, Var)])).
+                      [node_to_string(N) || N <- get_option(Options, Var, [])])).
 
 get_configure_xfields(_Type, Options, Lang, Groups) ->
     [?XFIELD("hidden", "", "FORM_TYPE", ?NS_PUBSUB_NODE_CONFIG),