Fix illegal match on previous commit

This commit is contained in:
Christophe Romain 2018-04-10 15:02:03 +02:00
parent 4c0f87b2ff
commit 99444f2d0e
1 changed files with 2 additions and 1 deletions

View File

@ -2004,10 +2004,11 @@ get_items(Host, Node, From, SubId, _MaxItems, ItemIds, RSM) ->
Host, From, Owners, AccessModel, AllowedGroups),
case ItemIds of
[ItemId] ->
NotFound = xmpp:err_item_not_found(),
case node_call(Host, Type, get_item,
[Nidx, ItemId, From, AccessModel, PS, RG, undefined])
of
{error, xmpp:err_item_not_found()} -> {result, {[], undefined}};
{error, NotFound} -> {result, {[], undefined}};
Result -> Result
end;
_ ->