- code review for pull request (#917)

This commit is contained in:
Nikita Sinelnikov
2021-09-17 20:06:04 +03:00
parent ca166a15ce
commit 7f7bdeabd4
3 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -217,8 +217,8 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
if ( ! empty( $filter_type ) ) {
if ( 'slider' === $filter_type ) {
if ( ! empty( $_POST[ $k ] ) ) {
if ( count($_POST[ $k ]) > 1 ) {
$temp_value[ $k ] = $_POST[ $k ];
if ( count( $_POST[ $k ] ) > 1 ) {
$temp_value[ $k ] = array_map( 'intval', $_POST[ $k ] );
} else {
$temp_value[ $k ] = (int) $_POST[ $k ];
}