Commit af07b6f2 authored by KR Moorhouse's avatar KR Moorhouse

Merge branch 'issue#3680' into 'develop'

Added check to the CSV export in the Email action to prevent values of 0 being exported as NULL values

Closes #3680

See merge request ninja-forms/ninja-forms!3670
parents 6b8b1f5e 5e71e3da
......@@ -303,7 +303,7 @@ final class NF_Actions_Email extends NF_Abstracts_Action
$label = ( '' != $field[ 'admin_label' ] ) ? $field[ 'admin_label' ] : $field[ 'label' ];
$value = WPN_Helper::stripslashes( $field[ 'value' ] );
if ( empty( $value ) ) {
if ( empty( $value ) && ! isset( $value ) ) {
$value = '';
}
if ( is_array( $value ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment