[buddypress-trac] [BuddyPress] #1722: bp_message_thread_to() returns error

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Jan 28 19:08:39 UTC 2010

#1722: bp_message_thread_to() returns error
Reporter:  balbert  |       Owner:       
    Type:  defect   |      Status:  new  
Priority:  major    |   Milestone:  1.2.1
Keywords:           |  
 bp_message_thread_to(), in bp_messages_templatetags.php is giving me a
 mysql error. Ultimately i believe the issue is really with the
 get_recipient_links() call in bp_messages_class.php.

 bp_get_message_thread_to() passes to get_recipients_links()
 $messages_template->thread->recipients which is an associative array with
 keys of user ids and values of objects.

 get_recipients_links() then tries to loop through this associative array
 using non associative keys in an attempt to get the user id's and
 ultimately is passing an object to bp_core_get_userlink() instead of an
 actual user id

Ticket URL: <http://trac.buddypress.org/ticket/1722>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list