Browse Source

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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
tags/v20.05.00
Owen Leonard 1 year ago
parent
commit
7ce4122131
Signed by: martin.renvoize <martin.renvoize@ptfs-europe.com> GPG Key ID: 422B469130441A0F
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Koha/Template/Plugin/KohaNews.pm

+ 2
- 2
Koha/Template/Plugin/KohaNews.pm View File

@@ -52,7 +52,7 @@ sub get {
blocktitle => $blocktitle
};
} else {
return 0;
return;
}
}

@@ -79,4 +79,4 @@ the following TT code: [% KohaNews.get() %]

Owen Leonard <oleonard@myacpl.org>

=cut
=cut

Loading…
Cancel
Save