Skip to:
Content

BuddyPress.org

Changeset 3914


Ignore:
Timestamp:
01/24/2011 03:02:59 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Add empty() check to $page_template to prevent false positives in bp_is_current_component

File:
1 edited

Legend:

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

    r3913 r3914  
    679679
    680680        // Component name is in the page template name
    681         if ( strstr( strtolower( $page_template ), strtolower( $component ) ) )
     681        if ( !empty( $page_template ) && strstr( strtolower( $page_template ), strtolower( $component ) ) )
    682682            $is_current_component = true;
    683683    }
Note: See TracChangeset for help on using the changeset viewer.