mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Fix wrong test when processing payments
This commit is contained in:
parent
723a4b4a72
commit
5f0b57f7e9
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ try{
|
|||
if(($payment->IsRecurring && $payment->Amount >= 10 && $payment->Created >= $lastMonth) || ($payment->Amount >= 100 && $payment->Created >= $lastYear)){
|
||||
// This payment is eligible for the Patrons Circle.
|
||||
// Are we already a patron?
|
||||
if(!Db::QueryInt('SELECT count(*) from Patrons where UserId = ? and Ended is not null', [$payment->UserId])){
|
||||
if(!Db::QueryInt('SELECT count(*) from Patrons where UserId = ? and Ended is null', [$payment->UserId])){
|
||||
// Not a patron yet, add them to the Patrons Circle
|
||||
|
||||
$patron = new Patron();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue