Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/16/2011 07:23:37 PM (15 years ago)
Author:
djpaul
Message:

Fix PHP notice when Forums component is active but has no page mapping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-filters.php

    r4961 r4991  
    2121        $pages[] = $bp->pages->register->id;
    2222
    23     if ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && bp_forums_has_directory() && !bp_forums_is_installed_correctly() ) )
     23    if ( !empty( $bp->pages->forums ) && ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && bp_forums_has_directory() && !bp_forums_is_installed_correctly() ) ) )
    2424        $pages[] = $bp->pages->forums->id;
    2525
Note: See TracChangeset for help on using the changeset viewer.