diff --git a/code/web/sys/Community/Campaign.php b/code/web/sys/Community/Campaign.php index d752dcb65c..a04e5447bb 100644 --- a/code/web/sys/Community/Campaign.php +++ b/code/web/sys/Community/Campaign.php @@ -340,7 +340,7 @@ public function getPastCampaigns(int $userId): array { $currentDate = date('Y-m-d H:i:s'); $campaign->whereAdd("endDate < '$currentDate'"); - $campaignList = []; + $pastCampaignList = []; if ($campaign->find()) { while($campaign->fetch()) {