Merge pull request #104 from jonfalcon/master

Fix registration
This commit is contained in:
Champ Camba
2016-02-27 22:52:11 +08:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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');
}
+1 -1
View File
@@ -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;