mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
Remove notices
This commit is contained in:
+1
-1
@@ -1113,7 +1113,7 @@ class UM_Fields {
|
||||
|
||||
$disabled = ' disabled="disabled" ';
|
||||
|
||||
if ( $data['public'] == '-2' && $data['roles'] ){
|
||||
if ( isset( $data['public'] ) && $data['public'] == '-2' && $data['roles'] ){
|
||||
if ( in_array( $ultimatemember->query->get_role_by_userid( get_current_user_id() ), $data['roles'] ) ){
|
||||
$disabled = '';
|
||||
}
|
||||
|
||||
@@ -1056,7 +1056,7 @@
|
||||
|
||||
if ( is_user_logged_in() && isset( $data['editable'] ) && $data['editable'] == 0 ) {
|
||||
|
||||
if( $data['public'] == "-2"){
|
||||
if( isset( $data['public'] ) && $data['public'] == "-2"){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user