Skip to content

Commit

Permalink
Fix possible error with subscriptions "Uncaught Exception: DatePeriod…
Browse files Browse the repository at this point in the history
…::__construct(): This constructor accepts either...".
  • Loading branch information
rvdsteege committed Aug 29, 2019
1 parent 0ea364d commit e8f33a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ All notable changes to this project will be documented in this file.
This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a CHANGELOG](http://keepachangelog.com/).

## [Unreleased][unreleased]
-
- Fix possible error with subscriptions "Uncaught Exception: DatePeriod::__construct(): This constructor accepts either...".
- Improve GF Nested Forms compatibility.

## [2.1.9] - 2019-08-26
- Updated packages.
Expand Down
2 changes: 1 addition & 1 deletion src/PaymentData.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ public function get_subscription() {
}

// Frequency.
$frequency = '';
$frequency = null;

switch ( $this->feed->subscription_frequency_type ) {
case GravityForms::SUBSCRIPTION_FREQUENCY_FIELD:
Expand Down

0 comments on commit e8f33a8

Please sign in to comment.