From cdf34ce15603edfee5453ce7b232d2ceb0aa61e7 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 1 Aug 2022 14:48:34 -0300 Subject: [PATCH] Bug 30077: (QA follow-up) Avoid warning Signed-off-by: Tomas Cohen Arazi --- catalogue/search.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 003658e31e..0bb34b10d6 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -239,7 +239,8 @@ my @search_groups = Koha::Library::Groups->get_search_groups( { interface => 'staff' } )->as_list; my $branch_limit = ''; -if ( scalar $cgi->param('limit') =~ /branch:([\w-]+)/ ) { +my $limit_param = $cgi->param('limit'); +if ( $limit_param and $limit_param =~ /branch:([\w-]+)/ ) { $branch_limit = $1; } -- 2.39.5