瀏覽代碼

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>
20.05.x
Owen Leonard 4 年之前
committed by Martin Renvoize
父節點
當前提交
7ce4122131
簽署人: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 4
      Koha/Template/Plugin/KohaNews.pm

4
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 <oleonard@myacpl.org>
=cut
=cut

Loading…
取消
儲存