Skip to:
Content

BuddyPress.org

Changeset 535


Ignore:
Timestamp:
11/10/2008 07:55:12 PM (16 years ago)
Author:
apeatling
Message:

Fixes #156

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-classes.php

    r462 r535  
    5151            if ( $this->has_access ) {
    5252                $this->thread_id = $thread->id;
    53                 $this->message_ids = unserialize($thread->message_ids);
    54                 $this->message_ids = implode( ',', $this->message_ids );
     53                $this->message_ids = maybe_unserialize($thread->message_ids);
     54               
     55                if ( is_array($this->message_ids) )
     56                    $this->message_ids = implode( ',', $this->message_ids );
     57               
    5558                $this->first_post_date = $thread->first_post_date;
    5659                $this->last_post_date = $thread->last_post_date;
     
    397400            for ( $i = 0; $i < count($recipient_usernames); $i++ ) {
    398401                if ( $rid = bp_core_get_userid( trim($recipient_usernames[$i]) ) )
    399                     if ( $i ) {
    400                         if ( !in_array( $rid, $recipient_ids ) )
    401                             $recipient_ids[] = $rid;
    402                     } else {
    403                         $recipient_ids[] = $rid;   
    404                     }
     402                    $recipient_ids[] = $rid;
    405403            }
    406404        }
Note: See TracChangeset for help on using the changeset viewer.