26
1
mirror of https://github.com/processone/ejabberd.git synced 2025-01-03 18:02:28 +01:00

fix typo bug injected in r1712

SVN Revision: 1724
This commit is contained in:
Christophe Romain 2008-12-09 22:42:01 +00:00
parent e8635b99c8
commit 6e5a32308a
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View 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