Skip to:
Content

BuddyPress.org

Changeset 1017 for trunk/bp-activity.php


Ignore:
Timestamp:
02/04/2009 12:29:21 AM (16 years ago)
Author:
matt
Message:

Minor cleanups, mods, and todos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r974 r1017  
    3636                id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    3737                item_id int(11) NOT NULL,
    38                 secondary_item_id int(11),
     38                secondary_item_id int(11) NOT NULL,
    3939                user_id int(11) NOT NULL,
    4040                component_name varchar(75) NOT NULL,
     
    5252                id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    5353                item_id int(11) NOT NULL,
    54                 secondary_item_id int(11),
     54                secondary_item_id int(11) NOT NULL,
    5555                content longtext NOT NULL,
    5656                primary_link varchar(150) NOT NULL,
     
    152152    if ( $bp['current_userid'] ) {
    153153        /* 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  )
    155155            bp_activity_user_install();
    156156    }
     
    158158    if ( is_site_admin() && $current_blog->blog_id == 1 ) {
    159159        /* 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  )
    161161            bp_activity_sitewide_install();
    162162    }
Note: See TracChangeset for help on using the changeset viewer.