diff --git a/core/um-actions-register.php b/core/um-actions-register.php index 1df62940..6374e956 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -116,7 +116,7 @@ $role = um_get_option('default_role'); } - if ( !in_array( $role, $ultimatemember->query->get_roles( false, array('admin') ) ) ) { + if ( !array_key_exists( $role, $ultimatemember->query->get_roles( false, array('admin') ) ) ) { $role = um_get_option('default_role'); } diff --git a/core/um-fields.php b/core/um-fields.php index 82abf4b8..28e57be2 100644 --- a/core/um-fields.php +++ b/core/um-fields.php @@ -2176,7 +2176,7 @@ class UM_Fields { if ( isset( $this->set_mode ) ) { $output = apply_filters("um_{$key}_form_show_field", $output, $this->set_mode); $output = apply_filters("um_{$type}_form_show_field", $output, $this->set_mode); - + } return $output;