From b9eeb4001240f84bf0bbaee48adf941363d9e1eb Mon Sep 17 00:00:00 2001 From: andrewshuba Date: Tue, 1 Oct 2019 15:19:49 +0300 Subject: [PATCH] - fix array_keys for non array --- includes/admin/core/class-admin-forms.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/admin/core/class-admin-forms.php b/includes/admin/core/class-admin-forms.php index 533520ea..8d3e5bb5 100644 --- a/includes/admin/core/class-admin-forms.php +++ b/includes/admin/core/class-admin-forms.php @@ -1247,7 +1247,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Forms' ) ) { $name_attr = ' name="' . $name . '" '; $values = $this->get_field_value( $field_data ); - $filters = array_keys( $values ); + if( is_array( $values ) ) { + $filters = array_keys( $values ); + } $options = ''; foreach ( $field_data['options'] as $key => $option ) {