Remove notices

This commit is contained in:
champsupertramp
2016-08-30 22:18:19 +08:00
parent 4938b1a4bd
commit 9da31fa799
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -274,6 +274,8 @@
$role = um_get_option('default_role');
}
if( empty( $role ) ) return;
$role = apply_filters('um_register_hidden_role_field', $role );
if( $role ){
echo '<input type="hidden" name="role" id="role" value="' . $role . '" />';