Skip to:
Content

BuddyPress.org

Changeset 2576 for trunk/bp-messages.php


Ignore:
Timestamp:
02/03/2010 09:06:27 PM (16 years ago)
Author:
apeatling
Message:

Fixes #1551 - also safeguarded all foreach loops with an array typecast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages.php

    r2558 r2576  
    453453
    454454                /* Format this to match existing recipients */
    455                 foreach( $recipient_ids as $i => $recipient_id ) {
     455                foreach( (array)$recipient_ids as $i => $recipient_id ) {
    456456                        $message->recipients[$i] = new stdClass;
    457457                        $message->recipients[$i]->user_id = $recipient_id;
Note: See TracChangeset for help on using the changeset viewer.