From ba49ece85a0dc580f7e52a8865fd4fa8484001f9 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Thu, 6 Jun 2019 11:53:01 +0200 Subject: [PATCH] Bug 22193: QA follow up - return undef instead of an array if no ressource id --- Koha/SharedContent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/SharedContent.pm b/Koha/SharedContent.pm index e69ec88..0076eae 100644 --- a/Koha/SharedContent.pm +++ b/Koha/SharedContent.pm @@ -142,7 +142,7 @@ sub get_entity_comments { my ($resource, $id) = @_; unless ($id) { - return []; + return; } my $entity = get_entity_by_id( -- 2.7.4