Fix logic errors

This commit is contained in:
Alex Cabal 2024-12-06 11:36:11 -06:00
parent 7ac427dad5
commit 72615fe79a
2 changed files with 3 additions and 2 deletions

View file

@ -53,6 +53,7 @@ class Patron{
?, ?,
?, ?,
?, ?,
?,
?) ?)
', [$this->Created, $this->UserId, $this->IsAnonymous, $this->AlternateName, $this->IsSubscribedToEmails, $this->BaseCost, $this->CycleType]); ', [$this->Created, $this->UserId, $this->IsAnonymous, $this->AlternateName, $this->IsSubscribedToEmails, $this->BaseCost, $this->CycleType]);

View file

@ -231,11 +231,11 @@ try{
if($payment->IsRecurring){ if($payment->IsRecurring){
$patron->BaseCost = PATRONS_CIRCLE_MONTHLY_COST; $patron->BaseCost = PATRONS_CIRCLE_MONTHLY_COST;
$patron->CycleType == Enums\CycleType::Monthly; $patron->CycleType = Enums\CycleType::Monthly;
} }
else{ else{
$patron->BaseCost = PATRONS_CIRCLE_YEARLY_COST; $patron->BaseCost = PATRONS_CIRCLE_YEARLY_COST;
$patron->CycleType == Enums\CycleType::Yearly; $patron->CycleType = Enums\CycleType::Yearly;
} }
$log->Write('Adding donor as patron ...'); $log->Write('Adding donor as patron ...');