[Koha-patches] [PATCH] Using warn instead of die
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Wed Aug 26 01:40:27 CEST 2009
---
C4/Boolean.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/C4/Boolean.pm b/C4/Boolean.pm
index 934a64f..8d40312 100644
--- a/C4/Boolean.pm
+++ b/C4/Boolean.pm
@@ -94,14 +94,14 @@ sub true_p ($) {
my($x) = @_;
my $it;
if (!defined $x || ref($x) ne '') {
- die INVALID_BOOLEAN_STRING_EXCEPTION;
+ warn INVALID_BOOLEAN_STRING_EXCEPTION;
}
$x = lc($x);
$x =~ s/\s//g;
if (defined $strings{$x}) {
$it = $strings{$x};
} else {
- die INVALID_BOOLEAN_STRING_EXCEPTION;
+ warn INVALID_BOOLEAN_STRING_EXCEPTION;
}
return $it;
}
--
1.6.0.4
More information about the Koha-patches
mailing list