- fix checking attr widget

This commit is contained in:
ashubawork
2023-05-01 10:42:37 +03:00
parent a366a3733f
commit 81eddaa7ea
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2076,7 +2076,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
function edit_field( $key, $data, $rule = false, $args = array() ) {
global $_um_profile_id;
if ( 1 === (int) $data['widget'] ) {
if ( isset( $data['widget'] ) && 1 === (int) $data['widget'] ) {
$_um_profile_id = get_current_user_id();
}