Changeset 6488
- Timestamp:
- 11/05/2012 09:53:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r6471 r6488 303 303 304 304 if ( !empty( $friend_ids ) ) { 305 $sql['where'][] = "u.{$this->uid_name} NOT IN ({$friend_ids})"; 306 } else { 307 // If the user has no friends, make sure the query returns null 305 $sql['where'][] = "u.{$this->uid_name} IN ({$friend_ids})"; 306 307 // If the user has no friends, and we're not including specific users, make sure the query returns null 308 } elseif ( empty( $include ) ) { 308 309 $sql['where'][] = $this->no_results['where']; 309 310 }
Note: See TracChangeset
for help on using the changeset viewer.