- fixed sorting labels issues;

- fixed getting range for slider filters;
This commit is contained in:
nikitasinelnikov
2020-01-22 00:40:20 +02:00
parent 2b150d3860
commit 3a5946d8bb
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -788,7 +788,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
), ARRAY_A );
$range = false;
if ( ! empty( $meta['min_meta'] ) && ! empty( $meta['max_meta'] ) ) {
if ( isset( $meta['min_meta'] ) && isset( $meta['max_meta'] ) ) {
$range = array( $meta['min_meta'], $meta['max_meta'] );
}
@@ -808,7 +808,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
if ( empty( $meta ) || ! isset( $meta['amount'] ) || $meta['amount'] === 1 ) {
$range = false;
} elseif ( ! empty( $meta['min_meta'] ) && ! empty( $meta['max_meta'] ) ) {
} elseif ( isset( $meta['min_meta'] ) && isset( $meta['max_meta'] ) ) {
$range = array( $this->borndate( strtotime( $meta['max_meta'] ) ), $this->borndate( strtotime( $meta['min_meta'] ) ) );
}