Skip to:
Content

BuddyPress.org

Changeset 1321


Ignore:
Timestamp:
04/05/2009 02:17:35 PM (16 years ago)
Author:
apeatling
Message:

Fixes #649

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r1275 r1321  
    256256    function kill_tables_for_user( $user_id ) {
    257257        global $bp, $wpdb;
     258
     259        if ( !$wpdb->get_var( "SHOW TABLES LIKE 'wp_user_{$user_id}_activity'" ) )
     260            return false;
    258261       
    259262        $wpdb->query( $wpdb->prepare( "DROP TABLE wp_user_{$user_id}_activity" ) );
     
    266269    function convert_tables_for_user( $user_id ) {
    267270        global $bp, $wpdb;
     271       
     272        if ( !$wpdb->get_var( "SHOW TABLES LIKE 'wp_user_{$user_id}_activity'" ) )
     273            return false;
    268274       
    269275        $activity_items = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM wp_user_{$user_id}_activity" ) );
Note: See TracChangeset for help on using the changeset viewer.