]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DATEV.pm
Projekte im Warenbericht
[kivitendo-erp.git] / SL / DATEV.pm
index 6c6f1c744916d09350e0aed587b114428d07d78b..7f38c88c11fbb3a8e4a8f4fec8182318ec186ccd 100644 (file)
@@ -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