+2008-10-07 Jerome Sautret <jerome.sautret@process-one.net>
+
+ * src/mod_roster_odbc.erl: fix MySQL multiple requests issue.
+
2008-10-06 Badlop <badlop@process-one.net>
* doc/guide.html: Regenerated
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
%%% General Public License for more details.
-%%%
+%%%
%%% You should have received a copy of the GNU General Public License
%%% along with this program; if not, write to the Free Software
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
LServer = jlib:nameprep(Server),
catch odbc_queries:sql_transaction(
LServer,
- lists:map(fun(El) ->
+ lists:flatmap(fun(El) ->
process_item_set_t(LUser, LServer, El)
end, Els)).
%% Empty groups do not need to be converted to string to be inserted in
%% the database
lists:foldl(fun([], Acc) -> Acc;
- (Group, Acc) ->
+ (Group, Acc) ->
String = ["'", Username, "',"
"'", SJID, "',"
"'", ejabberd_odbc:escape(Group), "'"],
webadmin_user(Acc, _User, _Server, Lang) ->
Acc ++ [?XE("h3", [?ACT("roster/", "Roster")])].
-