LP#1356576 repair sip date_format config typo user/berick/lp1356576-sip-date-config-check-typo
authorBill Erickson <berick@esilibrary.com>
Wed, 13 Aug 2014 20:44:50 +0000 (16:44 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 13 Aug 2014 20:44:53 +0000 (16:44 -0400)
Avoids "Use of uninitialized value in bitwise or (|)" error.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/SIP.pm

index 664bb62..bd11e19 100644 (file)
@@ -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);