debugify a warn

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Galen Charlton 2009-09-05 21:30:30 -04:00
parent 561fcb09e6
commit 056152e142

View file

@ -205,9 +205,8 @@ sub _get_barcode_data {
elsif ( $f =~ /^($match_kohatable).*/ ) {
if ($item->{$f}) {
$datastring .= $item->{$f};
}
else {
warn sprintf("The '%s' field contains no data.", $f);
} else {
$debug and warn sprintf("The '%s' field contains no data.", $f);
}
$f = $';
next FIELD_LIST;