Changeset 1321
- Timestamp:
- 04/05/2009 02:17:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r1275 r1321 256 256 function kill_tables_for_user( $user_id ) { 257 257 global $bp, $wpdb; 258 259 if ( !$wpdb->get_var( "SHOW TABLES LIKE 'wp_user_{$user_id}_activity'" ) ) 260 return false; 258 261 259 262 $wpdb->query( $wpdb->prepare( "DROP TABLE wp_user_{$user_id}_activity" ) ); … … 266 269 function convert_tables_for_user( $user_id ) { 267 270 global $bp, $wpdb; 271 272 if ( !$wpdb->get_var( "SHOW TABLES LIKE 'wp_user_{$user_id}_activity'" ) ) 273 return false; 268 274 269 275 $activity_items = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM wp_user_{$user_id}_activity" ) );
Note: See TracChangeset
for help on using the changeset viewer.