From 9fed9b2e36b2b9d79fcd3c4cdc669b60af4d8bc9 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 --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index 3e3d76a..477e7a9 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.1.4