From 7ce4122131a6c3d7f0fe7c953dc95fd5d831bf7f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 24 Mar 2020 12:42:11 +0000 Subject: [PATCH] Bug 24745: (follow-up) Correct return statement in news plugin Subroutine should "return;" instead of "return 0;" We also prevent ProhibitExplicitReturnUndef by not returning "undef" explicitly. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- Koha/Template/Plugin/KohaNews.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Template/Plugin/KohaNews.pm b/Koha/Template/Plugin/KohaNews.pm index 713d07301a..efd08dd52f 100644 --- a/Koha/Template/Plugin/KohaNews.pm +++ b/Koha/Template/Plugin/KohaNews.pm @@ -52,7 +52,7 @@ sub get { blocktitle => $blocktitle }; } else { - return 0; + return; } } @@ -79,4 +79,4 @@ the following TT code: [% KohaNews.get() %] Owen Leonard -=cut \ No newline at end of file +=cut -- 2.39.5