[Koha-patches] [PATCH] [labels_recon] [ 5/6] debugify a warn
Galen Charlton
gmcharlt at gmail.com
Sun Sep 6 03:42:40 CEST 2009
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
C4/Labels/Label.pm | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/C4/Labels/Label.pm b/C4/Labels/Label.pm
index 26bdcf5..9cf5026 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;
--
1.6.3.3
More information about the Koha-patches
mailing list