aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub.erl6
1 files 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) ->