From bdabe1c367859327925a816cef43f5de05faafae Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 13 Aug 2014 16:44:50 -0400 Subject: [PATCH] LP#1356576 repair sip date_format config typo Avoids "Use of uninitialized value in bitwise or (|)" error. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/SIP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm index 664bb6288b..bd11e1978e 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP.pm @@ -206,7 +206,7 @@ sub format_date { # Due dates need hyphen separators and time of day as well if ($type eq 'due') { - my $use_sdf = $class->get_option_value('use_sip_date_format') | ''; + my $use_sdf = $class->get_option_value('use_sip_date_format') || ''; if ($use_sdf =~ /true/i) { $date = $dt->strftime(SIP_DATETIME); -- 2.11.0