Update PreorderModel.php

This commit is contained in:
Luca Haid
2025-03-20 08:41:29 +00:00
parent 5fb3a3d789
commit 96ed8caaeb

View File

@@ -1050,7 +1050,7 @@ WHERE p.deleted = 0 AND tt_preorderstatus.code < 899";
public static function countTotalUnits($preorderCampaignId = null) {
$db = FronkDB::singleton();
$where = "";
$where = "1=1";
if ($preorderCampaignId) {
$where .= " AND pc.id = $preorderCampaignId";
}