Fixed a little bug in getiteminformation, it wasnt returning item loanlength

This commit is contained in:
rangi 2001-01-31 22:09:31 +00:00
parent dea0fd150d
commit 74aa1d1edd
1 changed files with 5 additions and 0 deletions

View File

@ -146,6 +146,11 @@ sub getiteminformation {
$sth->finish;
#$iteminformation->{'dewey'}=~s/0*$//;
($iteminformation->{'dewey'} == 0) && ($iteminformation->{'dewey'}='');
$sth=$dbh->prepare("select * from itemtypes where itemtype='$iteminformation->{'itemtype'}'");
$sth->execute;
my $itemtype=$sth->fetchrow_hashref;
$iteminformation->{'loanlength'}=$itemtype->{'loanlength'};
$sth->finish;
}
$dbh->disconnect;
return($iteminformation);