Changeset 9082
- Timestamp:
- 10/14/2014 01:40:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-classes.php
r9027 r9082 896 896 // the more general query syntax to accord better with 897 897 // BP/WP convention 898 preg_match_all( '/ INNER JOIN (.*) ON/', $meta_sql['join'], $matches_a );899 preg_match_all( '/ON \((. *)\)/', $meta_sql['join'], $matches_b );898 preg_match_all( '/JOIN (.+?) ON/', $meta_sql['join'], $matches_a ); 899 preg_match_all( '/ON \((.+?)\)/', $meta_sql['join'], $matches_b ); 900 900 901 901 if ( ! empty( $matches_a[1] ) && ! empty( $matches_b[1] ) ) { 902 902 $sql_array['join'] = implode( ',', $matches_a[1] ) . ', '; 903 $sql_array['where'] = $meta_sql['where'] . ' AND ' . implode 903 $sql_array['where'] = $meta_sql['where'] . ' AND ' . implode( ' AND ', $matches_b[1] ); 904 904 } 905 905 }
Note: See TracChangeset
for help on using the changeset viewer.