Skip to:
Content

BuddyPress.org

Changeset 1227 for trunk/bp-groups.php


Ignore:
Timestamp:
03/17/2009 10:43:24 AM (18 years ago)
Author:
apeatling
Message:

Removed LIKE table checks and used the DB version checks for upgrades instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups.php

    r1225 r1227  
    161161        if ( is_site_admin() ) {
    162162                /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
    163                 if ( !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp->groups->table_name . "%'") || ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ) )
     163                if ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION )
    164164                        groups_install();
    165165                       
    166                 if ( ( function_exists('bp_wire_install') && !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp->groups->table_name_wire . "%'") ) || ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ) )
     166                if ( function_exists('bp_wire_install') && get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION )
    167167                        groups_wire_install();
    168168        }
    … …  
    17071707}
    17081708
    1709 
    17101709function groups_get_invites_for_group( $user_id, $group_id ) {
    17111710        return BP_Groups_Group::get_invites( $user_id, $group_id );
Note: See TracChangeset for help on using the changeset viewer.