API: Allow renewal of membership with upcoming expiry
This commit is contained in:
1 parent
f2bd23efad
commit
f33ffa23df
2 files changed
+10
-9
No files matched your search
@@ -267,7 +267,7 @@ function add_or_renew_membership($user_id, $purchased=NULL) {
|
||||
|
||||
/* Membership expiry */
|
||||
/* One year from today (default) */
|
||||
if( $purchased == NULL ) {
|
||||
if( $purchased == NULL || $purchased === false) {
|
||||
$purchased = date_create();
|
||||
}
|
||||
/* ...or one year from specified date */
|
||||
|
||||
Reference in new issue
Block a user