Skip to content

Commit

Permalink
Fix membership valid to
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavgreif committed May 23, 2023
1 parent fcacff6 commit 6480817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function is_valid_for_group( $group_id ) {
return false;
}

if ( ! empty( $group['valid_to'] ) && $group['valid_to'] <= date( 'Y-m-d' ) ) {
if ( ! empty( $group['valid_to'] ) && $group['valid_to'] < date( 'Y-m-d' ) ) {
return false;
}

Expand Down

0 comments on commit 6480817

Please sign in to comment.