From: Steve Sutton Date: Wed, 6 Jun 2018 18:17:31 +0000 (-0400) Subject: Don't queue free memberships X-Git-Tag: v1.0.0^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c8a504570702759a3041f28c63d268c9651e6817;p=WP-Plugins%2Fglm-member-db-billing.git Don't queue free memberships Free memberships are those with invoice_type set to 0 --- diff --git a/classes/billingSupport.php b/classes/billingSupport.php index 70d552d..beb2483 100644 --- a/classes/billingSupport.php +++ b/classes/billingSupport.php @@ -596,7 +596,8 @@ class GlmBillingSupport "SELECT * FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "accounts WHERE renewal_date + INTERVAL 1 YEAR " . ($before ? '-' : '+' ) . " INTERVAL $count $period = '$curDate' - AND archived <> true", + AND archived <> true + AND invoice_type != 0", ARRAY_A ); }