From 7eca36202d27193b720a0778016a1b2997c35b9a Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 13 Sep 2022 13:06:53 +0000 Subject: [PATCH] Bug 30802: (QA follow-up) Simplify a ternary Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index f146325ec6..12e4d70b05 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -96,7 +96,7 @@ my $forgivemanualholdsexpire = $query->param('forgivemanualholdsexpire'); my $overduecharges = (C4::Context->preference('finesMode') && C4::Context->preference('finesMode') eq 'production'); #set up so only the last 8 returned items display (make for faster loading pages) -my $returned_counter = ( C4::Context->preference('numReturnedItemsToShow') ) ? C4::Context->preference('numReturnedItemsToShow') : 8; +my $returned_counter = C4::Context->preference('numReturnedItemsToShow') || 8; # Set up the item stack .... my %returneditems; -- 2.39.5