From fe354d5ffb974ffd18fcb52f1356643015af2fc4 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 19 Apr 2017 16:25:17 +0200 Subject: [PATCH] Bug 16895: [QA Follow-up] Resolve warning on $payment_type_writeoff Content-Type: text/plain; charset=utf-8 Resolves: Use of uninitialized value $payment_type_writeoff in string eq at C4/SIP/Sip/MsgType.pm line 1072, line 2. Would be raised if this parameter is not found in SIPconfig.xml. Signed-off-by: Marcel de Rooy --- C4/SIP/Sip/MsgType.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index 3660aa4..e4f2237 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -1068,7 +1068,7 @@ sub handle_fee_paid { my $status; my $resp = FEE_PAID_RESP; - my $payment_type_writeoff = $server->{account}->{payment_type_writeoff}; + my $payment_type_writeoff = $server->{account}->{payment_type_writeoff} || ''; my $is_writeoff = $pay_type eq $payment_type_writeoff; $fee_amt = $fields->{ (FID_FEE_AMT) }; -- 2.1.4