From d031520710b85061051edc6ed4890aa9374bdf92 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Oct 2020 11:33:23 +0200 Subject: [PATCH] Bug 26137: Remove warnings from viewlog.pl The warnings are Use of uninitialized value $val in concatenation (.) or string at /kohadevbox/koha/C4/Templates.pm line 138. Problem = a value of has been passed to param without key at /kohadevbox/koha/C4/Templates.pm line 138. Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit 8b541714a177fc141c77967c8fc528c5c5453139) Signed-off-by: Lucas Gass --- tools/viewlog.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/viewlog.pl b/tools/viewlog.pl index 9c2141eb2f..bf7d1d663b 100755 --- a/tools/viewlog.pl +++ b/tools/viewlog.pl @@ -90,7 +90,7 @@ if ( $src eq 'circ' ) { $template->param( debug => $debug, C4::Search::enabled_staff_search_views, - subscriptionsnumber => CountSubscriptionFromBiblionumber(scalar $input->param('object')), + subscriptionsnumber => ( $object ? CountSubscriptionFromBiblionumber($object) : 0 ), object => $object, ); -- 2.39.5