From 3e808b7c46bbe039282798f51c135daa5c1f2cc9 Mon Sep 17 00:00:00 2001 From: djfiander Date: Sun, 21 May 2006 13:52:51 +0000 Subject: [PATCH] Eliminate warning message for uninitialized variable use --- ILS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILS.pm b/ILS.pm index 2ee1ded..a00aaac 100644 --- a/ILS.pm +++ b/ILS.pm @@ -95,7 +95,7 @@ sub checkout { if ($circ->ok) { # If the item is already associated with this patron, then # we're renewing it. - $circ->renew_ok($item->{patron} eq $patron_id); + $circ->renew_ok($item->{patron} && ($item->{patron} eq $patron_id)); $item->{patron} = $patron_id; $item->{due_date} = time + (14*24*60*60); # two weeks push(@{$patron->{items}}, $item_id); -- 2.11.0