Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/22/2010 01:48:36 PM (14 years ago)
Author:
boonebgorges
Message:

Adds rel=nofollow to xprofile data links. Fixes #2696. Fixes a handful of WP_DEBUG errors throughout xprofile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r3499 r3560  
    102102            $field = &$this->group->fields[$i];
    103103
    104             if ( $field->data->value != null ) {
     104            if ( !empty( $field->data ) && $field->data->value != null ) {
    105105                $has_data = true;
    106106            }
     
    441441                $option_values = maybe_unserialize($option_values);
    442442
     443                $html = '';
    443444                for ( $k = 0; $k < count($options); $k++ ) {
     445                    $selected = '';
    444446                    for ( $j = 0; $j < count($option_values); $j++ ) {
    445447                        if ( $option_values[$j] == $options[$k]->name || @in_array( $options[$k]->name, $value ) || $options[$k]->is_default_option ) {
Note: See TracChangeset for help on using the changeset viewer.