Plugin Directory

Changeset 707002


Ignore:
Timestamp:
05/02/2013 03:32:13 PM (13 years ago)
Author:
Yuttadhammo
Message:

fixing favorites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php

    r706999 r707002  
    883883        switch(@$data['scope']) {
    884884            case 'favorites':
    885                 $include = implode( ',', (array)bp_activity_get_user_favorites( $bp->loggedin_user->id ) );
    886                 if(!$include)
    887                     $include = 0;
     885                $favs = (array)bp_activity_get_user_favorites( $bp->loggedin_user->id );
     886                if(empty($favs))
     887                    $favs = array(-1);
     888                $include = implode( ',', $favs );
    888889                break;
    889890            case 'friends':
Note: See TracChangeset for help on using the changeset viewer.