Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/26/2009 09:34:54 PM (16 years ago)
Author:
apeatling
Message:

Fixing up group and profile page sidebars.

File:
1 edited

Legend:

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

    r2077 r2145  
    118118    function has_fields() {
    119119        $has_data = false;
    120         $just_name = true;
    121120
    122121        for ( $i = 0; $i < count( $this->group->fields ); $i++ ) {
     
    125124            if ( $field->data->value != null ) {
    126125                $has_data = true;
    127 
    128                 if ( 1 != $field->id )
    129                     $just_name = false;
    130126            }
    131127        }
    132 
    133         if ( 1 == $this->group->id && $just_name )
    134             return false;
    135128
    136129        if ( $has_data )
     
    156149        $field = $this->next_field();
    157150
    158         if ( $field->data->value != '' ) {
     151        if ( !empty( $field->data->value ) ) {
    159152            $this->field_has_data = true;
    160153        }
Note: See TracChangeset for help on using the changeset viewer.