From ff50f74d642e526bbc6ac335bef96ca7435cb645 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Tue, 9 Jan 2018 18:15:30 +0000 Subject: [PATCH] Bug 19938: Split C4/Members.pm to avoid conflict issues Signed-off-by: Lee Jamison --- C4/Members.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index faa497f..d4a82c0 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -248,7 +248,8 @@ sub patronflags { $flaginfo{'message'} = $patroninformation->{'borrowernotes'}; $flags{'NOTES'} = \%flaginfo; } - my ( $odues, $itemsoverdue ) = C4::Overdues::checkoverdues($patroninformation->{'borrowernumber'}); + my $itemsoverdue = C4::Overdues::checkoverdues($patroninformation->{'borrowernumber'}); + my $odues = $itemsoverdue ? scalar(@$itemsoverdue) : 0; if ( $odues && $odues > 0 ) { my %flaginfo; $flaginfo{'message'} = "Yes"; -- 2.1.4