]> granicus.if.org Git - ejabberd/commitdiff
Fix function_clause after authentication refactoring
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 18 May 2017 06:51:04 +0000 (09:51 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 18 May 2017 06:51:04 +0000 (09:51 +0300)
Fixes https://github.com/processone/ejabberd-contrib/issues/213

src/sql_queries.erl

index 862e4e28450aa14e72514fc7274322f8b0914e71..2f2e5586365cfda197c18283adac4acd9728c906 100644 (file)
@@ -205,10 +205,12 @@ del_user_return_password(_LServer, LUser, Password) ->
     P.
 
 list_users(LServer) ->
+    list_users(LServer, []).
+
+list_users(LServer, []) ->
     ejabberd_sql:sql_query(
       LServer,
-      ?SQL("select @(username)s from users")).
-
+      ?SQL("select @(username)s from users"));
 list_users(LServer, [{from, Start}, {to, End}])
     when is_integer(Start) and is_integer(End) ->
     list_users(LServer,