24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-26 22:35:31 +02:00

fix typo bug injected in r1712

SVN Revision: 1725
This commit is contained in:
Christophe Romain 2008-12-09 22:42:34 +00:00
parent 3d28a7837d
commit e1575e3177

View File

@ -1758,7 +1758,7 @@ send_items(Host, Node, {LU, LS, LR} = 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