Commit 120c8cfa authored by KR Moorhouse's avatar KR Moorhouse

Added early escape for any fields that have somehow gotten corrupted and set to null.

parent cb189eae
......@@ -158,6 +158,8 @@ final class NF_Admin_Menus_Submissions extends NF_Abstracts_Submenu
$hidden_field_types = apply_filters( 'ninja_forms_sub_hidden_field_types', array() );
foreach( $fields as $field ){
if ( is_null( $field ) ) continue;
if( in_array( $field->get_setting( 'type' ), $hidden_field_types ) ) continue;
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