From 72615fe79a15bd252dfc12ef449d1d9d36747c53 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Fri, 6 Dec 2024 11:36:11 -0600 Subject: [PATCH] Fix logic errors --- lib/Patron.php | 1 + scripts/process-pending-payments | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Patron.php b/lib/Patron.php index 5ea67e4b..e477d8f9 100644 --- a/lib/Patron.php +++ b/lib/Patron.php @@ -53,6 +53,7 @@ class Patron{ ?, ?, ?, + ?, ?) ', [$this->Created, $this->UserId, $this->IsAnonymous, $this->AlternateName, $this->IsSubscribedToEmails, $this->BaseCost, $this->CycleType]); diff --git a/scripts/process-pending-payments b/scripts/process-pending-payments index fb4b0290..3b503dcd 100755 --- a/scripts/process-pending-payments +++ b/scripts/process-pending-payments @@ -231,11 +231,11 @@ try{ if($payment->IsRecurring){ $patron->BaseCost = PATRONS_CIRCLE_MONTHLY_COST; - $patron->CycleType == Enums\CycleType::Monthly; + $patron->CycleType = Enums\CycleType::Monthly; } else{ $patron->BaseCost = PATRONS_CIRCLE_YEARLY_COST; - $patron->CycleType == Enums\CycleType::Yearly; + $patron->CycleType = Enums\CycleType::Yearly; } $log->Write('Adding donor as patron ...');