]> granicus.if.org Git - ejabberd/commitdiff
fix typo bug injected in r1712
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 9 Dec 2008 22:42:01 +0000 (22:42 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 9 Dec 2008 22:42:01 +0000 (22:42 +0000)
SVN Revision: 1724

ChangeLog
src/mod_pubsub/mod_pubsub.erl

index 0dad41acb945dee981024cecfca3e0ad4f3f5166..d8fa25c1f57beef10e2e0e8a8e6e8a7a6e24fe83 100644 (file)
--- 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 <christophe.romain@process-one.net>
 
index 23f6d619ded55e5a4b0965210b2865031c515c69..5e0f142324352529e64983e78cb359f9e65d548a 100644 (file)
@@ -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