Skip to:
Content

BuddyPress.org

Changeset 2988


Ignore:
Timestamp:
05/04/2010 09:44:35 PM (14 years ago)
Author:
apeatling
Message:

Make sure bp_blogmeta functions do not run on non-multisite installations where the table does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-blogs.php

    r2985 r2988  
    392392                'recorded_time' => $post->post_date_gmt
    393393            ));
    394 
    395             bp_blogs_update_blogmeta( $recorded_post->blog_id, 'last_activity', gmdate( "Y-m-d H:i:s" ) );
    396394        }
    397395    } else
     
    608606    global $wpdb, $bp;
    609607
    610     if ( !is_numeric( $blog_id ) )
     608    if ( !is_numeric( $blog_id ) || !bp_core_is_multisite() )
    611609        return false;
    612610
     
    636634    $blog_id = (int) $blog_id;
    637635
    638     if ( !$blog_id )
     636    if ( !$blog_id || !bp_core_is_multisite() )
    639637        return false;
    640638
     
    668666    global $wpdb, $bp;
    669667
    670     if ( !is_numeric( $blog_id ) )
     668    if ( !is_numeric( $blog_id ) || !bp_core_is_multisite() )
    671669        return false;
    672670
Note: See TracChangeset for help on using the changeset viewer.