X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDATEV.pm;h=7f38c88c11fbb3a8e4a8f4fec8182318ec186ccd;hb=0b542b2592c077957d9ccc08ca0cf84886e2b1d2;hp=6c6f1c744916d09350e0aed587b114428d07d78b;hpb=7274f9c8e8c61b00ff7a4e2bad6accec85015a73;p=kivitendo-erp.git diff --git a/SL/DATEV.pm b/SL/DATEV.pm index 6c6f1c744..7f38c88c1 100644 --- a/SL/DATEV.pm +++ b/SL/DATEV.pm @@ -942,7 +942,7 @@ sub kne_stammdatenexport { push @values, $form->{accnoto}; } - my $where_str = ' WHERE ' . join(' AND ', map { "($_)" } @where) if (scalar @where); + my $where_str = @where ? ' WHERE ' . join(' AND ', map { "($_)" } @where) : ''; my $query = qq|SELECT c.accno, c.description FROM chart c