From 3baefb7f242b97bbc773a042a856d8e9ba84c888 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Tue, 31 Aug 2010 19:45:38 +0200 Subject: [PATCH] Avoid to add a warning in log ... each time GetMemberDetails function is called Signed-off-by: Galen Charlton --- C4/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index cddbf414d0..4bafa0c5bd 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -484,7 +484,7 @@ sub patronflags { $flags{'NOTES'} = \%flaginfo; } my ( $odues, $itemsoverdue ) = checkoverdues($patroninformation->{'borrowernumber'}); - if ( $odues > 0 ) { + if ( $odues && $odues > 0 ) { my %flaginfo; $flaginfo{'message'} = "Yes"; $flaginfo{'itemlist'} = $itemsoverdue; -- 2.39.5