Skip to:
Content

BuddyPress.org

Ticket #7202: 7202.01.patch

File 7202.01.patch, 787 bytes (added by r-a-y, 5 years ago)
  • src/bp-xprofile/classes/class-bp-xprofile-query.php

     
    515515                                $compatible_compares = array( '=', 'IN', 'BETWEEN', 'LIKE', 'REGEXP', 'RLIKE', '>', '>=', '<', '<=' );
    516516
    517517                        // Clauses joined by AND with "negative" operators share a join only if they also share a key.
    518                         } elseif ( isset( $sibling['field_id'] ) && isset( $clause['field_id'] ) && $sibling['field_id'] === $clause['field_id'] ) {
     518                        } elseif ( isset( $sibling['field'] ) && isset( $clause['field'] ) && $sibling['field'] === $clause['field'] ) {
    519519                                $compatible_compares = array( '!=', 'NOT IN', 'NOT LIKE' );
    520520                        }
    521521