From: djfiander Date: Sun, 21 May 2006 13:52:51 +0000 (+0000) Subject: Eliminate warning message for uninitialized variable use X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3e808b7c46bbe039282798f51c135daa5c1f2cc9;p=working%2FSIPServer.git Eliminate warning message for uninitialized variable use --- 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);