[Koha-patches] [PATCH] debugify a warn
Galen Charlton
galen.charlton at liblime.com
Thu Oct 16 17:44:56 CEST 2008
---
opac/opac-tags.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl
index 3d5d5dd..2b9dfd7 100755
--- a/opac/opac-tags.pl
+++ b/opac/opac-tags.pl
@@ -138,7 +138,7 @@ if (scalar @newtags_keys) {
$counts{$biblionumber}++;
} else {
push @errors, {failed_add_tag=>$clean_tag};
- warn "add_tag($biblionumber,$clean_tag,$loggedinuser...) returned bad result (" . (defined $result ? $result : 'UNDEF') .")";
+ $debug and warn "add_tag($biblionumber,$clean_tag,$loggedinuser...) returned bad result (" . (defined $result ? $result : 'UNDEF') .")";
}
}
}
--
1.5.5.GIT
More information about the Koha-patches
mailing list