From fdf828fc66cb67cecdd5b36a6b7ed71050204893 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 3 Sep 2010 20:00:22 +0000 Subject: [PATCH] event code may be 0 (SUCCESS) == false in SIP checkin, check defined instead git-svn-id: svn://svn.open-ils.org/ILS/trunk@17488 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/SIP/Transaction/Checkin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/SIP/Transaction/Checkin.pm b/Open-ILS/src/perlmods/OpenILS/SIP/Transaction/Checkin.pm index 20fe8cf98..7a97b2f9a 100644 --- a/Open-ILS/src/perlmods/OpenILS/SIP/Transaction/Checkin.pm +++ b/Open-ILS/src/perlmods/OpenILS/SIP/Transaction/Checkin.pm @@ -87,7 +87,7 @@ sub do_checkin { } my $code = $U->event_code($resp); - my $txt = $code ? $resp->{textcode} : ''; + my $txt = (defined $code) ? $resp->{textcode} : ''; $resp->{org} &&= OpenILS::SIP::shortname_from_id($resp->{org}); # Convert id to shortname -- 2.11.0