Skip to content

Commit d5c8f08

Browse files
authored
Fixed checkbox values not appearing when exporting members. (#1337)
1 parent c02d5e9 commit d5c8f08

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

includes/admin/class-ur-admin-export-users.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ public function generate_rows( $users, $form_id, $unchecked_fields = array(), $c
341341
}
342342
$user_extra_row[ $user_extra_data_key ] = $file_link;
343343
} elseif ( isset( $field_data['field_key'] ) && ( 'checkbox' === $field_data['field_key'] || 'multi_select2' === $field_data['field_key'] ) ) {
344-
$values = ( is_array( $user_extra_data ) && ! empty( $user_extra_data ) ) ? implode( ',', $user_extra_data ) : ""; //phpcs:ignore
345-
$user_extra_row[ $user_extra_data_key ] = $values;
344+
$user_extra_row[ $user_extra_data_key ] = is_array( $user_extra_data ) ? implode( ',', $user_extra_data ) : $user_extra_data;
346345
}
347346
}
348347
}

0 commit comments

Comments
 (0)