Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/19/2010 02:00:55 PM (14 years ago)
Author:
djpaul
Message:

Fixes some more PHP notices

File:
1 edited

Legend:

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

    r3474 r3542  
    101101    global $bp;
    102102
    103     if ( $bp->current_action == 'forum' && $bp->action_variables[0] == 'topic' ) {
    104         if ( bp_has_forum_topic_posts() ) {
     103    if ( $bp->current_action == 'forum' && !empty( $bp->action_variables[0] ) && 'topic' == $bp->action_variables[0] )
     104        if ( bp_has_forum_topic_posts() )
    105105            $title .= ' | ' . bp_get_the_topic_title();
    106         }
    107     }
    108106
    109107    return $title;
Note: See TracChangeset for help on using the changeset viewer.