diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2008-12-09 22:42:01 +0000 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2008-12-09 22:42:01 +0000 |
commit | 6e5a32308a60b7eb887313310793e0f88d50df0c (patch) | |
tree | 5607c5ece99f3b8b86ac1415b3a7171be63daff4 /src | |
parent | prevent publish items with invalid XML schema (EJAB-699) (diff) |
fix typo bug injected in r1712
SVN Revision: 1724
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_pubsub/mod_pubsub.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 23f6d619..5e0f1423 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 |