removed unconditional warn introduced in previous patch

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Galen Charlton 2010-05-24 11:15:18 -04:00 committed by Chris Cormack
parent e3387b9c4f
commit c74710b007
1 changed files with 0 additions and 1 deletions

View File

@ -96,7 +96,6 @@ sub plugin {
}
# If a prefix is submited, we look for the highest itemcallnumber with this prefix, and return it incremented
} elsif ( $code =~ m/^[A-Z.\-]+$/ ) {
warn $code;
my $sth = $dbh->prepare("SELECT MAX(CAST(SUBSTRING_INDEX(itemcallnumber,' ',-1) AS SIGNED)) FROM items WHERE itemcallnumber LIKE ?");
$sth->execute($code.' %');
if ( my $max = $sth->fetchrow ) {