Changeset 535
- Timestamp:
- 11/10/2008 07:55:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-classes.php
r462 r535 51 51 if ( $this->has_access ) { 52 52 $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 55 58 $this->first_post_date = $thread->first_post_date; 56 59 $this->last_post_date = $thread->last_post_date; … … 397 400 for ( $i = 0; $i < count($recipient_usernames); $i++ ) { 398 401 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; 405 403 } 406 404 }
Note: See TracChangeset
for help on using the changeset viewer.