From: Christophe Romain Date: Tue, 9 Dec 2008 22:42:01 +0000 (+0000) Subject: fix typo bug injected in r1712 X-Git-Tag: v2.1.0~18^2~518 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e5a32308a60b7eb887313310793e0f88d50df0c;p=ejabberd fix typo bug injected in r1712 SVN Revision: 1724 --- diff --git a/ChangeLog b/ChangeLog index 0dad41acb..d8fa25c1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * src/mod_pubsub/mod_pubsub.erl: prevent publish items with invalid XML schema bugfix (EJAB-699) (previous commit was uncomplete) + and fix bug injected in previous commit 2008-12-08 Christophe Romain diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 23f6d619d..5e0f14232 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -1763,7 +1763,7 @@ send_items(Host, Node, LJID, Number) -> []; Items -> case Number of - last -> lists:last(Items); + last -> [lists:last(Items)]; all -> Items; N when N > 0 -> lists:nthtail(length(Items)-N, Items); _ -> Items