Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/models/FrmUsage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}}';
}
Expand Down
3 changes: 3 additions & 0 deletions stripe/views/lists/coupons-upsell.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
?>
<div class="frm-coupons-upsell-wrapper">
<h2><?php esc_html_e( 'Coupons', 'formidable' ); ?></h2>
Expand Down