Skip to:
Content

BuddyPress.org

Changeset 5921


Ignore:
Timestamp:
03/15/2012 10:58:14 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Implode results of wp_parse_id_list() in BP_Activity_Activity::get(); (1.5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-activity/bp-activity-classes.php

    r5917 r5921  
    135135        // Exclude specified items
    136136        if ( !empty( $exclude ) ) {
    137             $exclude = wp_parse_id_list( $exclude );
     137            $exclude = implode( ',', wp_parse_id_list( $exclude ) );
    138138            $where_conditions['exclude'] = "a.id NOT IN ({$exclude})";
    139139        }
     
    141141        // The specific ids to which you want to limit the query
    142142        if ( !empty( $in ) ) {
    143             $in = wp_parse_id_list( $in );
     143            $in = implode( ',', wp_parse_id_list( $in ) );
    144144            $where_conditions['in'] = "a.id IN ({$in})";
    145145        }
Note: See TracChangeset for help on using the changeset viewer.