Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/22/2014 11:50:44 PM (12 years ago)
Author:
djpaul
Message:

Unit Tests: fix an undeclared variable warning, and other pass-by-reference warnings that occur on some versions of PHP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r7952 r7972  
    581581        }
    582582
     583        $retval = true;
     584
    583585        add_filter( 'query', 'bp_filter_metaid_column_name' );
    584586        foreach ( $keys as $key ) {
     
    625627                $values = array();
    626628                foreach ( (array) $retval as $rkey => $rvalue ) {
     629                        $rvalue = array_reverse( $rvalue );
    627630                        $found = new stdClass;
    628631                        $found->meta_key = $rkey;
    629                         $found->meta_value = array_pop( array_reverse( $rvalue ) );
     632                        $found->meta_value = array_pop( $rvalue );
    630633                        $values[] = $found;
    631634                }
Note: See TracChangeset for help on using the changeset viewer.