Skip to:
Content

BuddyPress.org

Changeset 3357 for trunk/bp-forums.php


Ignore:
Timestamp:
11/05/2010 09:37:15 PM (14 years ago)
Author:
djpaul
Message:

Fix some wp_debug warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r3347 r3357  
    2121
    2222    $bp->forums->image_base = BP_PLUGIN_URL . '/bp-forums/images';
    23     $bp->forums->bbconfig = $bp->site_options['bb-config-location'];
    2423    $bp->forums->slug = BP_FORUMS_SLUG;
     24
     25    if ( isset( $bp->site_options['bb-config-location'] ) )
     26        $bp->forums->bbconfig = $bp->site_options['bb-config-location'];
    2527
    2628    /* Register this in the active components array */
     
    536538    global $bp, $wp_roles, $bb_table_prefix;
    537539
     540    if ( !isset( $bp->loggedin_user->id ) )
     541        return $allcaps;
     542
    538543    $bb_cap = get_user_meta( $bp->loggedin_user->id, $bb_table_prefix . 'capabilities', true );
    539544
Note: See TracChangeset for help on using the changeset viewer.