Bug 30077: (QA follow-up) Avoid warning

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2022-08-01 14:48:34 -03:00
parent 12f42a5aaf
commit cdf34ce156
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}