From abf3b058982e767cdba0a86925a9188c2d0d0efd Mon Sep 17 00:00:00 2001 From: rangi Date: Sat, 14 May 2005 22:26:07 +0000 Subject: [PATCH] Another little error that was throwing annoying warns --- C4/Circulation/Circ2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index 14a9e46573..3db2d5452a 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -228,7 +228,7 @@ sub getpatroninformation { $sth=$dbh->prepare("select bit,flag from userflags"); $sth->execute; while (my ($bit, $flag) = $sth->fetchrow) { - if ($borrower->{'flags'} & 2**$bit) { + if ($borrower->{'flags'} && $borrower->{'flags'} & 2**$bit) { $accessflagshash->{$flag}=1; } } -- 2.39.5