Skip to:
Content

BuddyPress.org

Changeset 3058


Ignore:
Timestamp:
06/20/2010 09:18:42 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Fix #2424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-xprofile.php

    r2996 r3058  
    11<?php
    2 define ( 'BP_XPROFILE_DB_VERSION', '1850' );
     2define ( 'BP_XPROFILE_DB_VERSION', '1870' );
    33
    44/* Define the slug for the component */
     
    7272            $sql[] = "INSERT INTO {$bp->profile->table_name_groups} VALUES ( 1, '" . get_site_option( 'bp-xprofile-base-group-name' ) . "', '', 0 );";
    7373
    74         if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = 1" ) ) {
    75             $sql[] = "INSERT INTO {$bp->profile->table_name_fields} (
    76                         id, group_id, parent_id, type, name, is_required, can_delete
    77                       ) VALUES (
    78                         1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', 1, 0
    79                       );";
    80         }
     74        if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = 1" ) )
     75            $sql[] = "INSERT INTO {$bp->profile->table_name_fields} VALUES ( 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', '', 1, 0, 0, 0, '', 0 );";
     76
    8177    }
    8278
Note: See TracChangeset for help on using the changeset viewer.