diff --git a/classes/models/FrmUsage.php b/classes/models/FrmUsage.php index 10a6fc151e..ea6c8de6df 100644 --- a/classes/models/FrmUsage.php +++ b/classes/models/FrmUsage.php @@ -214,7 +214,7 @@ private function clean_before_send( &$data ) { } // If key ends with `_email`, or value contains `@`, this might contain an email address. - if ( str_ends_with( $key, '_email' ) || str_contains( $value, '@' ) ) { + if ( str_ends_with( $key, '_email' ) || is_string( $value ) && str_contains( $value, '@' ) ) { // Replace it with a placeholder. $value = '{{contain_email}}'; } diff --git a/stripe/views/lists/coupons-upsell.php b/stripe/views/lists/coupons-upsell.php index 5814e7e4d7..04204f8e57 100755 --- a/stripe/views/lists/coupons-upsell.php +++ b/stripe/views/lists/coupons-upsell.php @@ -4,6 +4,9 @@ } $images_folder_url = FrmAppHelper::plugin_url() . '/images/coupons/'; + +// Track the view of the upsell coupons tab in the usage data. +FrmUsageController::update_flows_data( 'coupons', 'view_tab' ); ?>