Changeset 2668 for trunk/bp-xprofile.php
- Timestamp:
- 02/11/2010 01:13:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r2656 r2668 77 77 78 78 if ( '' == get_site_option( 'bp-xprofile-db-version' ) ) { 79 $sql[] = "INSERT INTO {$bp->profile->table_name_groups} VALUES ( 1, '" . get_site_option( 'bp-xprofile-base-group-name' ) . "', '', 0 );"; 80 81 $sql[] = "INSERT INTO {$bp->profile->table_name_fields} ( 82 id, group_id, parent_id, type, name, is_required, can_delete 83 ) VALUES ( 84 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', 1, 0 85 );"; 79 if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_groups} WHERE id = 1" ) ) 80 $sql[] = "INSERT INTO {$bp->profile->table_name_groups} VALUES ( 1, '" . get_site_option( 'bp-xprofile-base-group-name' ) . "', '', 0 );"; 81 82 if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = 1" ) ) { 83 $sql[] = "INSERT INTO {$bp->profile->table_name_fields} ( 84 id, group_id, parent_id, type, name, is_required, can_delete 85 ) VALUES ( 86 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', 1, 0 87 );"; 88 } 86 89 } 87 90
Note: See TracChangeset
for help on using the changeset viewer.