mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Fix logic errors
This commit is contained in:
parent
7ac427dad5
commit
72615fe79a
2 changed files with 3 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
||||||
|
|
|
@ -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 ...');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue