Changeset 2145 for trunk/bp-xprofile/bp-xprofile-templatetags.php
- Timestamp:
- 11/26/2009 09:34:54 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-templatetags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-templatetags.php
r2077 r2145 118 118 function has_fields() { 119 119 $has_data = false; 120 $just_name = true;121 120 122 121 for ( $i = 0; $i < count( $this->group->fields ); $i++ ) { … … 125 124 if ( $field->data->value != null ) { 126 125 $has_data = true; 127 128 if ( 1 != $field->id )129 $just_name = false;130 126 } 131 127 } 132 133 if ( 1 == $this->group->id && $just_name )134 return false;135 128 136 129 if ( $has_data ) … … 156 149 $field = $this->next_field(); 157 150 158 if ( $field->data->value != '') {151 if ( !empty( $field->data->value ) ) { 159 152 $this->field_has_data = true; 160 153 }
Note: See TracChangeset
for help on using the changeset viewer.