X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d744e4f26701cc7b07bfd822a6a7af690d94c565..f11dcc70cd323fe2071ea62b53fc0ec106c3c02d:/SL/CT.pm diff --git a/SL/CT.pm b/SL/CT.pm index 9b2b79f13..1b9d91593 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -45,6 +45,8 @@ use SL::DBUtils; use SL::FU; use SL::Notes; +use strict; + sub get_tuple { $main::lxdebug->enter_sub(); @@ -1069,7 +1071,7 @@ sub get_bank_info { my $table = $params{vc} eq 'customer' ? 'customer' : 'vendor'; my @ids = ref $params{id} eq 'ARRAY' ? @{ $params{id} } : ($params{id}); - my $placeholders = ('?') x scalar @ids; + my $placeholders = join ", ", ('?') x scalar @ids; my $query = qq|SELECT id, name, account_number, bank, bank_code, iban, bic FROM ${table} WHERE id IN (${placeholders})|;