From 2410aaca23548be9817dfcec9f66d8999390cd67 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 16 Feb 2018 15:05:30 -0300 Subject: [PATCH] Bug 12001: (QA follow-up) Explicit return Signed-off-by: Tomas Cohen Arazi Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index 3e3d76adeb..477e7a9325 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -281,7 +281,7 @@ sub balance { } ); - my $total = $fines->count + return ( $fines->count ) ? $fines->next->get_column('total_amountoutstanding') + 0 : 0; } -- 2.39.5