From 1f45548c91366d04a115c02c0f8d4b40c93f78fc 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 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 Signed-off-by: Kyle M Hall --- 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 5f66e9b881..192239ef79 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -1060,7 +1060,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.39.5