diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index fac98e206f..f4a58d19fc 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -669,7 +669,7 @@ sub save_single_bank_transaction { my ($payment_type, $free_skonto_amount); if ( defined $::form->{invoice_skontos}->{"$bt_id"} ) { - $payment_type = shift(@{ $::form->{invoice_skontos}->{"$bt_id"} }); + $payment_type = shift(@{ $::form->{invoice_skontos}->{"$bt_id"} }) || ''; } else { $payment_type = 'without_skonto'; }