Skip to:
Content

BuddyPress.org

Changeset 635


Ignore:
Timestamp:
12/06/2008 05:57:13 AM (16 years ago)
Author:
apeatling
Message:

Fixing #211

File:
1 edited

Legend:

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

    r623 r635  
    222222       
    223223        /* Remove entries that are older than 6 months */
    224         $wpdb->query( $wpdb->prepare( "DELETE FROM " . $bp['activity']['table_name_sitewide'] . " WHERE DATE_ADD(date_recorded, INTERVAL 6 MONTHS) <= NOW()" ) );
     224        $wpdb->query( $wpdb->prepare( "DELETE FROM " . $bp['activity']['table_name_sitewide'] . " WHERE DATE_ADD(date_recorded, INTERVAL 6 MONTH) <= NOW()" ) );
    225225       
    226226        $activities = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM " . $bp['activity']['table_name_sitewide'] . " ORDER BY date_recorded DESC $limit_sql" ) );
Note: See TracChangeset for help on using the changeset viewer.