From 056152e142d01f2611ef10eb00ba05f7f7c4648e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 5 Sep 2009 21:30:30 -0400 Subject: [PATCH] debugify a warn Signed-off-by: Galen Charlton --- C4/Labels/Label.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/Labels/Label.pm b/C4/Labels/Label.pm index 26bdcf57e6..9cf50262ca 100644 --- a/C4/Labels/Label.pm +++ b/C4/Labels/Label.pm @@ -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; -- 2.20.1