mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
- fixed PHP notice when default filter value isn't array (e.g. bool);
This commit is contained in:
@@ -687,7 +687,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
<?php disabled( ! empty( $filter_from_url ) && in_array( $opt, $filter_from_url ) );
|
||||
|
||||
if ( $admin ) {
|
||||
if ( is_string( $default_value ) ) {
|
||||
if ( ! is_array( $default_value ) ) {
|
||||
$default_value = array( $default_value );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user