From 7beb19b01e7e3edc1be69a6901a1ff9a0fef79a2 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Fri, 16 Mar 2018 17:48:42 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20result=20of=20XEP-0060=20=C2=A76.5.9.12?= =?UTF-8?q?=20(#2288)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mod_pubsub.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 88daf721c..eb5ee8ccb 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -2026,8 +2026,10 @@ get_items(Host, Node, From, SubId, _MaxItems, ItemIds, RSM) -> {result, #pubsub{items = #ps_items{node = Node, items = itemsEls([Item])}}}; - Error -> - Error + _ -> + {result, + #pubsub{items = #ps_items{node = Node, + items = itemsEls([])}}} end. get_items(Host, Node) ->