LP#1356576 repair sip date_format config typo
authorBill Erickson <berick@esilibrary.com>
Wed, 13 Aug 2014 20:44:50 +0000 (16:44 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 18 Sep 2014 20:40:24 +0000 (16:40 -0400)
Avoids "Use of uninitialized value in bitwise or (|)" error.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
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);