Changeset 4770 for trunk/bp-xprofile/bp-xprofile-classes.php
- Timestamp:
- 07/21/2011 10:27:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r4634 r4770 73 73 if ( BP_XProfile_Field::delete_for_group( $this->id ) ) { 74 74 /* Remove profile data for the groups fields */ 75 for ( $i = 0 ; $i < count( $this->fields ); $i++) {75 for ( $i = 0, $count = count( $this->fields ); $i < $count; ++$i ) { 76 76 BP_XProfile_ProfileData::delete_for_field( $this->fields[$i]->id ); 77 77 } … … 587 587 ); 588 588 589 $i++;589 ++$i; 590 590 } 591 591 } 592 592 593 593 if ( !empty( $options ) ) { 594 for ( $i = 0 ; $i < count( $options ); $i++) {594 for ( $i = 0, $count = count( $options ); $i < $count; ++$i ) { 595 595 $j = $i + 1; 596 596 … … 911 911 912 912 if ( is_array( $fields ) ) { 913 for ( $i = 0 ; $i < count( $fields ); $i++) {913 for ( $i = 0, $count = count( $fields ); $i < $count; ++$i ) { 914 914 if ( $i == 0 ) 915 915 $field_sql .= $wpdb->prepare( "AND ( f.name = %s ", $fields[$i] ); … … 931 931 932 932 if ( is_array( $fields ) ) { 933 for ( $i = 0 ; $i < count( $values ); $i++) {933 for ( $i = 0, $count = count( $values ); $i < $count; ++$i ) { 934 934 for ( $j = 0; $j < count( $fields ); $j++ ) { 935 935 if ( $values[$i]->name == $fields[$j] )
Note: See TracChangeset
for help on using the changeset viewer.