diff --git a/bin/lms-sendinvoices.php b/bin/lms-sendinvoices.php index b01278a985..b30b68e9c7 100755 --- a/bin/lms-sendinvoices.php +++ b/bin/lms-sendinvoices.php @@ -498,7 +498,9 @@ function ($value) { AND c.invoicenotice = 1 AND d.cdate >= $daystart AND d.cdate <= $dayend" - . ($customergroups ?: ''), $args)); + . ($customergroups ?: ''), + $args + )); if (empty($count)) { die; }