From 6a903c85b917a034313fcfb8b3b40f42c3a7068c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 3 Jan 2008 12:36:38 -0600 Subject: [PATCH] removed extra 'my' that was causing a masking warning Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index fc3c802a08..19f91251bf 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1408,7 +1408,7 @@ s/\[(.?.?.?.?)$tagsubf(.*?)]/$1$subfieldvalue$2\[$1$tagsubf$2]/g; } } # notforloan, item level and biblioitem level my ( $availableitemscount, $onloanitemscount, $otheritemscount ); - my $maxitems = + $maxitems = ( C4::Context->preference('maxItemsinSearchResults') ) ? C4::Context->preference('maxItemsinSearchResults') - 1 : 1; -- 2.39.5