Skip to:
Content

BuddyPress.org

Changeset 1897


Ignore:
Timestamp:
09/17/2009 07:12:45 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1025 props luka.bernardi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r1878 r1897  
    782782
    783783function xprofile_insert_field( $args = '' ) {
     784    global $bp;
     785   
    784786    extract( $args );
    785787   
     
    805807   
    806808    /* Check this is a valid field type */
    807     if ( !in_array( $type, $bp->profile->field_types ) )
     809    if ( !in_array( (array) $type, $bp->profile->field_types ) )
    808810        return false;
    809811   
Note: See TracChangeset for help on using the changeset viewer.