X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/4b4c57c48287b244c8241b026cd8a97cc82b0a37..211de9e3a7748d80cada65e5dde13a41b9e3f749:/SL/SEPA.pm diff --git a/SL/SEPA.pm b/SL/SEPA.pm index 32e763cdb..ced75be7e 100644 --- a/SL/SEPA.pm +++ b/SL/SEPA.pm @@ -305,7 +305,7 @@ sub list_exports { push @where, 'se.vc = ?'; push @values, $vc; - my $where = ' WHERE ' . join(' AND ', map { "(${_})" } @where) if (@where); + my $where = @where ? ' WHERE ' . join(' AND ', map { "(${_})" } @where) : ''; my $query = qq|SELECT se.id, se.employee_id, se.executed, se.closed, itime::date AS export_date,