Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/11/2015 04:43:28 PM (6 years ago)
Author:
r-a-y
Message:

Friends: Follow-up to #6577.

Check existence of user ID in $user_query->results array before setting.
Prevents a potential notice from occurring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-filters.php

    r10037 r10042  
    6161            continue;
    6262        }
    63         $user_query->results[ $nf ]->friendship_status = 'not_friends';
     63
     64        if ( isset( $user_query->results[ $nf ] ) ) {
     65            $user_query->results[ $nf ]->friendship_status = 'not_friends';
     66        }
    6467    }
    6568
Note: See TracChangeset for help on using the changeset viewer.