PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | stripe/models/FrmTransLitePayment.php +4 -2 6.28 → trunk View file →
@@ -97,15 +97,17 @@
97 97 if ( null !== $to_date ) {
98 98 $where['created_at <'] = $to_date . ' 23:59:59';
99 99 }
100 100
101 + $db_version = get_option( $this->db_opt_name );
102 +
101 103 // Do not collect test payment, this is a new feature of Stripe lite.
102 - if ( 6 <= get_option( $this->db_opt_name ) ) {
104 + if ( 6 <= $db_version ) {
103 105 $where['test'] = array( null, 0 );
104 106 }
105 107
106 108 // If only Paypal is used, and the DB isn't migrated (to version 4), use `completed` column instead of `status`.
107 - if ( 4 > get_option( $this->db_opt_name ) && FrmDb::db_column_exists( $this->table_name, 'completed' ) ) {
109 + if ( 4 > $db_version && FrmDb::db_column_exists( $this->table_name, 'completed' ) ) {
108 110 $where['completed'] = 1;
109 111 } else {
110 112 $where['status'] = 'complete';
111 113 }