X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/573562a5411e9a3cb35b586935a6a0ed29d805db..0966a8326e5c0d6b46cb4ea836386ef5fca318ec:/SL/Controller/BankTransaction.pm diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 47089bdc9..a8d424c2d 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -373,8 +373,8 @@ sub action_save_invoices { foreach my $invoice (@invoices) { my $payment_type; - if ( @$skonto_hash{"$bt_id"} ) { - $payment_type = shift( @$skonto_hash{"$bt_id"} ); + if ( defined $skonto_hash->{"$bt_id"} ) { + $payment_type = shift(@{ $skonto_hash->{"$bt_id"} }); } else { $payment_type = 'without_skonto'; };