- Timestamp:
- 08/31/2018 06:43:30 PM (8 years ago)
- Location:
- branches/3.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/bp-xprofile/classes/class-bp-xprofile-group.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0
-
branches/3.0/src/bp-xprofile/classes/class-bp-xprofile-group.php
r11808 r12211 212 212 213 213 // Remove profile data for the groups fields. 214 for ( $i = 0, $count = count( $this->fields ); $i < $count; ++$i ) { 215 BP_XProfile_ProfileData::delete_for_field( $this->fields[$i]->id ); 214 if ( ! empty( $this->fields ) ) { 215 for ( $i = 0, $count = count( $this->fields ); $i < $count; ++$i ) { 216 BP_XProfile_ProfileData::delete_for_field( $this->fields[$i]->id ); 217 } 216 218 } 217 219 }
Note: See TracChangeset
for help on using the changeset viewer.