mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
* fixed #1540;
This commit is contained in:
@@ -4299,6 +4299,11 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$data = $this->get_field( $key );
|
||||
}
|
||||
|
||||
// Invalid field data.
|
||||
if ( ! is_array( $data ) ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
//hide if empty type
|
||||
if ( ! array_key_exists( 'type', $data ) || empty( $data['type'] ) ) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user