Changeset 1017 for trunk/bp-activity.php
- Timestamp:
- 02/04/2009 12:29:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r974 r1017 36 36 id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, 37 37 item_id int(11) NOT NULL, 38 secondary_item_id int(11) ,38 secondary_item_id int(11) NOT NULL, 39 39 user_id int(11) NOT NULL, 40 40 component_name varchar(75) NOT NULL, … … 52 52 id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, 53 53 item_id int(11) NOT NULL, 54 secondary_item_id int(11) ,54 secondary_item_id int(11) NOT NULL, 55 55 content longtext NOT NULL, 56 56 primary_link varchar(150) NOT NULL, … … 152 152 if ( $bp['current_userid'] ) { 153 153 /* Check to see if the current user has their activity table set up. If not, set them up. */ 154 if ( !$wpdb->get_var(" show tables like'%" . $bp['activity']['table_name_current_user'] . "%'") || get_usermeta( $bp['current_userid'], 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION )154 if ( !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp['activity']['table_name_current_user'] . "%'") || get_usermeta( $bp['current_userid'], 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION ) 155 155 bp_activity_user_install(); 156 156 } … … 158 158 if ( is_site_admin() && $current_blog->blog_id == 1 ) { 159 159 /* Check to see if the site wide activity table is set up. */ 160 if ( !$wpdb->get_var(" show tables like'%" . $bp['activity']['table_name_sitewide'] . "%'") || get_site_option( 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION )160 if ( !$wpdb->get_var("SHOW TABLES LIKE '%" . $bp['activity']['table_name_sitewide'] . "%'") || get_site_option( 'bp-activity-db-version' ) < BP_ACTIVITY_VERSION ) 161 161 bp_activity_sitewide_install(); 162 162 }
Note: See TracChangeset
for help on using the changeset viewer.